diff --git a/src/components/datasets/DatasetForm.js b/src/components/datasets/DatasetForm.js index 8b6d60df..68c387ce 100644 --- a/src/components/datasets/DatasetForm.js +++ b/src/components/datasets/DatasetForm.js @@ -16,22 +16,14 @@ const DatasetForm = ({ initialValue, form, updateMode }) => { const discoveryValidator = useDiscoveryValidator(); const datsValidator = useDatsValidator(); if (initialValue && !initialValue?.data_use) { - initialValue["data_use"] = simpleDeepCopy(INITIAL_DATA_USE_VALUE) + initialValue["data_use"] = simpleDeepCopy(INITIAL_DATA_USE_VALUE); } return (
- + - + diff --git a/src/components/datasets/DatasetFormModal.js b/src/components/datasets/DatasetFormModal.js index 29dea431..39c46da7 100644 --- a/src/components/datasets/DatasetFormModal.js +++ b/src/components/datasets/DatasetFormModal.js @@ -30,7 +30,7 @@ const DatasetFormModal = ({ project, mode, initialValue, onCancel, onOk, open }) await (onOk || nop)({ ...(initialValue || {}), values }); form.resetFields(); }, - [dispatch, form, initialValue, mode, onOk], + [dispatch, form, initialValue, onOk], ); const handleCancel = useCallback(() => {