From f5bd8ead3759f332dbbdd70238bee1d30024dcc6 Mon Sep 17 00:00:00 2001 From: Bikash Date: Tue, 8 Oct 2024 11:55:32 +0545 Subject: [PATCH] fixed default diff in env from backend and frontend by setting default to null --- .../env+/$environment+/new-app/app-environment-variables.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/console/routes/_main+/$account+/env+/$environment+/new-app/app-environment-variables.tsx b/src/apps/console/routes/_main+/$account+/env+/$environment+/new-app/app-environment-variables.tsx index 26e57aa05..7f29ac812 100644 --- a/src/apps/console/routes/_main+/$account+/env+/$environment+/new-app/app-environment-variables.tsx +++ b/src/apps/console/routes/_main+/$account+/env+/$environment+/new-app/app-environment-variables.tsx @@ -243,9 +243,10 @@ export const EnvironmentVariables = () => { submit, resetValues: reset, } = useForm({ - initialValues: getReadOnlyContainer().env || [], + initialValues: getReadOnlyContainer().env || null, validationSchema: Yup.array(entry), onSubmit: (val) => { + //@ts-ignore setContainer((c) => ({ ...c, env: val,