Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau committed Sep 6, 2024
1 parent 491bd05 commit b58bd1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions src/components/datasets/DatasetForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Form form={form} layout="vertical" initialValues={initialValue}>
<Item
label="Title"
name="title"
rules={[{ required: true }, { min: 3 }]}
>
<Item label="Title" name="title" rules={[{ required: true }, { min: 3 }]}>
<Input placeholder="My Dataset" size="large" />
</Item>
<Item
label="Description"
name="description"
rules={[{ required: true }]}
>
<Item label="Description" name="description" rules={[{ required: true }]}>
<Input.TextArea placeholder="This is a dataset" />
</Item>
<Item label="Contact Information" name="contact_info">
Expand Down
2 changes: 1 addition & 1 deletion src/components/datasets/DatasetFormModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit b58bd1e

Please sign in to comment.