diff --git a/frontend/src/components/context-vars/ContextVarDialog.tsx b/frontend/src/components/context-vars/ContextVarDialog.tsx index a1257ba..b7ba8db 100644 --- a/frontend/src/components/context-vars/ContextVarDialog.tsx +++ b/frontend/src/components/context-vars/ContextVarDialog.tsx @@ -66,7 +66,11 @@ export const ContextVarDialog: FC = ({ formState: { errors }, control, } = useForm({ - defaultValues: { name: data?.name || "", label: data?.label || "" }, + defaultValues: { + name: data?.name || "", + label: data?.label || "", + permanent: data?.permanent, + }, }); const validationRules = { label: { @@ -96,6 +100,7 @@ export const ContextVarDialog: FC = ({ reset({ label: data.label, name: data.name, + permanent: data.permanent, }); } else { reset();