Skip to content

Commit

Permalink
Fixed: Cloudflare turnstile loading in email form widget while editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat Saxena committed Nov 16, 2024
1 parent 37c3b35 commit f3783b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/components/public/base-layout/template/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const EditableWidget = ({
settings={item.settings || {}}
pageData={pageData}
id={item.widgetId}
editing={editing}
editing={true}
dispatch={dispatch}
state={state}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/common-widgets/src/email-form/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const Widget = ({
},
]}
/>
{state.config.turnstileSiteKey && (
{!editing && state.config.turnstileSiteKey && (
<>
<Script
src="https://challenges.cloudflare.com/turnstile/v0/api.js"
Expand Down

0 comments on commit f3783b2

Please sign in to comment.