Skip to content

Commit

Permalink
fixed default diff in env from backend and frontend by setting defaul…
Browse files Browse the repository at this point in the history
…t to null
  • Loading branch information
tulsiojha committed Oct 8, 2024
1 parent 384a3c1 commit f5bd8ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f5bd8ea

Please sign in to comment.