fix(edge/aeec): make edge id generator field mandatory EE-6010 (#10545)

This commit is contained in:
matias-portainer
2023-10-27 10:35:10 -03:00
committed by GitHub
parent 9e60723e4d
commit f10356641a
4 changed files with 15 additions and 3 deletions
@@ -19,6 +19,7 @@ const edgePropertiesFormInitialValues: ScriptFormValues = {
edgeGroupsIds: [],
group: 0,
tagsIds: [],
edgeIdGenerator: '',
};
interface Props {
@@ -45,6 +46,7 @@ export function EdgeScriptForm({
initialValues={edgePropertiesFormInitialValues}
validationSchema={() => validationSchema(isNomadTokenVisible)}
onSubmit={() => {}}
validateOnMount
>
{({ values, setFieldValue }) => (
<>