From a7c83af5bce00efc74a78c063cc8526e88ab624a Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 4 Sep 2024 14:17:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Allow=20scripts=20to=20be=20exec?= =?UTF-8?q?uted=20in=20WA=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bot-engine/blocks/logic/script/executeScript.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/bot-engine/blocks/logic/script/executeScript.ts b/packages/bot-engine/blocks/logic/script/executeScript.ts index cba609e32..5312274ce 100644 --- a/packages/bot-engine/blocks/logic/script/executeScript.ts +++ b/packages/bot-engine/blocks/logic/script/executeScript.ts @@ -12,8 +12,7 @@ export const executeScript = async ( block: ScriptBlock ): Promise => { 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