From f3783b218f40a9ea0dcfce30bbc1e3862378a5c5 Mon Sep 17 00:00:00 2001 From: Rajat Saxena Date: Sat, 16 Nov 2024 10:51:09 +0530 Subject: [PATCH] Fixed: Cloudflare turnstile loading in email form widget while editing --- apps/web/components/public/base-layout/template/index.tsx | 2 +- packages/common-widgets/src/email-form/widget.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/components/public/base-layout/template/index.tsx b/apps/web/components/public/base-layout/template/index.tsx index 900680cd..a4f626b6 100644 --- a/apps/web/components/public/base-layout/template/index.tsx +++ b/apps/web/components/public/base-layout/template/index.tsx @@ -63,7 +63,7 @@ const EditableWidget = ({ settings={item.settings || {}} pageData={pageData} id={item.widgetId} - editing={editing} + editing={true} dispatch={dispatch} state={state} /> diff --git a/packages/common-widgets/src/email-form/widget.tsx b/packages/common-widgets/src/email-form/widget.tsx index d8269dba..9f8a3466 100644 --- a/packages/common-widgets/src/email-form/widget.tsx +++ b/packages/common-widgets/src/email-form/widget.tsx @@ -183,7 +183,7 @@ const Widget = ({ }, ]} /> - {state.config.turnstileSiteKey && ( + {!editing && state.config.turnstileSiteKey && ( <>