1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(code): revert omitempty optimization EE-6269 (#10548)

This commit is contained in:
andres-portainer 2023-10-27 17:33:04 -03:00 committed by GitHub
parent f10356641a
commit 247f358b94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 205 additions and 123 deletions

View file

@ -9,8 +9,8 @@ import { FormValues } from './types';
export function validationSchema(): SchemaOf<FormValues> {
return object()
.shape({
EnableEdgeComputeFeatures: boolean().default(false),
EnforceEdgeID: boolean().default(false),
EnableEdgeComputeFeatures: boolean().required('This field is required.'),
EnforceEdgeID: boolean().required('This field is required.'),
})
.concat(
isBE