From 3871464486d85d387f39b0c0e71de976705f9e93 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Wed, 27 Nov 2024 06:40:49 +0100 Subject: [PATCH] fix: add fallback and capture_vars defaultValues --- frontend/src/components/visual-editor/BlockDialog.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/components/visual-editor/BlockDialog.tsx b/frontend/src/components/visual-editor/BlockDialog.tsx index 25991b5..27bb00e 100644 --- a/frontend/src/components/visual-editor/BlockDialog.tsx +++ b/frontend/src/components/visual-editor/BlockDialog.tsx @@ -82,9 +82,15 @@ const BlockDialog: FC = ({ limit: 2, }, assignTo: block?.options?.assignTo, + fallback: block?.options?.fallback || { + active: true, + message: [], + max_attempts: 1, + }, }, assign_labels: block?.assign_labels || [], message: block?.message || [""], + capture_vars: block?.capture_vars || [], } as IBlockAttributes; const methods = useForm({ defaultValues: DEFAULT_VALUES,