2
0

🐛 Allow scripts to be executed in WA env

This commit is contained in:
Baptiste Arnaud
2024-09-04 14:17:09 +02:00
parent 3b87801c92
commit a7c83af5bc

View File

@ -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