🚸 (bot) Avoid waiting for blocks with no returned data
This commit is contained in:
@@ -12,7 +12,7 @@ export const executeIntegration = ({
|
||||
}: {
|
||||
block: IntegrationBlock
|
||||
context: IntegrationState
|
||||
}): Promise<string | undefined> => {
|
||||
}): Promise<string | undefined> | string | undefined => {
|
||||
switch (block.type) {
|
||||
case IntegrationBlockType.GOOGLE_SHEETS:
|
||||
return executeGoogleSheetBlock(block, context)
|
||||
|
||||
@@ -25,6 +25,6 @@ export const executeLogic = async (
|
||||
case LogicBlockType.CODE:
|
||||
return { nextEdgeId: await executeCode(block, context) }
|
||||
case LogicBlockType.TYPEBOT_LINK:
|
||||
return await executeTypebotLink(block, context)
|
||||
return executeTypebotLink(block, context)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user