From ee80e3d252e2ffa47d3b1ffd476fd68866a82b5b Mon Sep 17 00:00:00 2001 From: andres-portainer <91705312+andres-portainer@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:51:39 -0300 Subject: [PATCH] fix(edge): fix frontend issues with omitempty EE-6260 (#10536) --- .../EdgeComputeSettings/EdgeComputeSettings.validation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/react/portainer/settings/EdgeComputeView/EdgeComputeSettings/EdgeComputeSettings.validation.ts b/app/react/portainer/settings/EdgeComputeView/EdgeComputeSettings/EdgeComputeSettings.validation.ts index b1eee135a..c4461034b 100644 --- a/app/react/portainer/settings/EdgeComputeView/EdgeComputeSettings/EdgeComputeSettings.validation.ts +++ b/app/react/portainer/settings/EdgeComputeView/EdgeComputeSettings/EdgeComputeSettings.validation.ts @@ -9,8 +9,8 @@ import { FormValues } from './types'; export function validationSchema(): SchemaOf { return object() .shape({ - EnableEdgeComputeFeatures: boolean().required('This field is required.'), - EnforceEdgeID: boolean().required('This field is required.'), + EnableEdgeComputeFeatures: boolean().default(false), + EnforceEdgeID: boolean().default(false), }) .concat( isBE