🐛 Allow scripts to be executed in WA env
This commit is contained in:
@ -12,8 +12,7 @@ export const executeScript = async (
|
|||||||
block: ScriptBlock
|
block: ScriptBlock
|
||||||
): Promise<ExecuteLogicResponse> => {
|
): Promise<ExecuteLogicResponse> => {
|
||||||
const { variables } = state.typebotsQueue[0].typebot
|
const { variables } = state.typebotsQueue[0].typebot
|
||||||
if (!block.options?.content || state.whatsApp)
|
if (!block.options?.content) return { outgoingEdgeId: block.outgoingEdgeId }
|
||||||
return { outgoingEdgeId: block.outgoingEdgeId }
|
|
||||||
|
|
||||||
const isExecutedOnClient =
|
const isExecutedOnClient =
|
||||||
block.options.isExecutedOnClient ?? defaultScriptOptions.isExecutedOnClient
|
block.options.isExecutedOnClient ?? defaultScriptOptions.isExecutedOnClient
|
||||||
|
Reference in New Issue
Block a user