chore: quick create route
This commit is contained in:
@@ -102,6 +102,7 @@ const TargetsForm = forwardRef((props, ref) => {
|
||||
value: []
|
||||
}
|
||||
];
|
||||
|
||||
form.setFieldValue('targets', newTargets);
|
||||
};
|
||||
|
||||
@@ -239,6 +240,12 @@ const TargetsForm = forwardRef((props, ref) => {
|
||||
fetchSourceModels();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (action === PageAction.CREATE) {
|
||||
handleOnAdd();
|
||||
}
|
||||
}, [action]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Form.Item
|
||||
|
||||
Reference in New Issue
Block a user