diff --git a/frontend/src/modules/Datasets/views/DatasetCreateForm.js b/frontend/src/modules/Datasets/views/DatasetCreateForm.js
index a7b9b9c9b..3d4ab89f8 100644
--- a/frontend/src/modules/Datasets/views/DatasetCreateForm.js
+++ b/frontend/src/modules/Datasets/views/DatasetCreateForm.js
@@ -14,7 +14,6 @@ import {
Grid,
Link,
MenuItem,
- Switch,
TextField,
Typography
} from '@mui/material';
@@ -55,7 +54,6 @@ const DatasetCreateForm = (props) => {
'Secret'
]);
-
const topicsData = Topics.map((t) => ({ label: t, value: t }));
const fetchEnvironments = useCallback(async () => {
@@ -108,10 +106,6 @@ const DatasetCreateForm = (props) => {
}
}, [client, fetchEnvironments, dispatch]);
- function test(x){
- console.log(x);
- }
-
async function submit(values, setStatus, setSubmitting, setErrors) {
try {
const response = await client.mutate(
@@ -239,8 +233,9 @@ const DatasetCreateForm = (props) => {
confidentiality: Yup.string()
.max(255)
.required('*Confidentiality is required'),
- autoApprovalEnabled: Yup.boolean()
- .required('*AutoApproval property is required'),
+ autoApprovalEnabled: Yup.boolean().required(
+ '*AutoApproval property is required'
+ )
})}
onSubmit={async (
values,
@@ -387,14 +382,12 @@ const DatasetCreateForm = (props) => {
value={values.autoApprovalEnabled}
variant="outlined"
>
-
-
+
-
diff --git a/frontend/src/modules/Datasets/views/DatasetEditForm.js b/frontend/src/modules/Datasets/views/DatasetEditForm.js
index d44aae3c4..7211752f4 100644
--- a/frontend/src/modules/Datasets/views/DatasetEditForm.js
+++ b/frontend/src/modules/Datasets/views/DatasetEditForm.js
@@ -157,7 +157,6 @@ const DatasetEditForm = (props) => {
confidentiality: values.confidentiality,
KmsAlias: values.KmsAlias,
autoApprovalEnabled: values.autoApprovalEnabled
-
}
})
);
@@ -265,7 +264,6 @@ const DatasetEditForm = (props) => {
confidentiality: dataset.confidentiality,
KmsAlias: dataset.KmsAlias,
autoApprovalEnabled: dataset.autoApprovalEnabled
-
}}
validationSchema={Yup.object().shape({
label: Yup.string()
@@ -278,8 +276,9 @@ const DatasetEditForm = (props) => {
confidentiality: Yup.string().required(
'*Confidentiality is required'
),
- autoApprovalEnabled: Yup.boolean()
- .required('*AutoApproval property is required'),
+ autoApprovalEnabled: Yup.boolean().required(
+ '*AutoApproval property is required'
+ )
})}
onSubmit={async (
values,
@@ -469,14 +468,12 @@ const DatasetEditForm = (props) => {
value={values.autoApprovalEnabled}
variant="outlined"
>
-
-
diff --git a/frontend/src/modules/Datasets/views/DatasetImportForm.js b/frontend/src/modules/Datasets/views/DatasetImportForm.js
index 0c0fe04e3..18dabca90 100644
--- a/frontend/src/modules/Datasets/views/DatasetImportForm.js
+++ b/frontend/src/modules/Datasets/views/DatasetImportForm.js
@@ -224,7 +224,7 @@ const DatasetImportForm = (props) => {
bucketName: '',
KmsKeyAlias: '',
confidentiality: '',
- autoApprovalEnabled: false,
+ autoApprovalEnabled: false
}}
validationSchema={Yup.object().shape({
label: Yup.string()
@@ -245,8 +245,9 @@ const DatasetImportForm = (props) => {
confidentiality: Yup.string()
.max(255)
.required('*Confidentiality is required'),
- autoApprovalEnabled: Yup.boolean()
- .required('*AutoApproval property is required'),
+ autoApprovalEnabled: Yup.boolean().required(
+ '*AutoApproval property is required'
+ )
})}
onSubmit={async (
values,
@@ -394,14 +395,12 @@ const DatasetImportForm = (props) => {
value={values.autoApprovalEnabled}
variant="outlined"
>
-
-