Skip to content

Commit

Permalink
🐛 Allow scripts to be executed in WA env
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Sep 4, 2024
1 parent 3b87801 commit a7c83af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/bot-engine/blocks/logic/script/executeScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export const executeScript = async (
block: ScriptBlock
): Promise<ExecuteLogicResponse> => {
const { variables } = state.typebotsQueue[0].typebot
if (!block.options?.content || state.whatsApp)
return { outgoingEdgeId: block.outgoingEdgeId }
if (!block.options?.content) return { outgoingEdgeId: block.outgoingEdgeId }

const isExecutedOnClient =
block.options.isExecutedOnClient ?? defaultScriptOptions.isExecutedOnClient
Expand Down

0 comments on commit a7c83af

Please sign in to comment.