Browse Source

fix: http request fallback

Ahmad Kholid 3 years ago
parent
commit
fb3c00473e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/background/workflowEngine/blocksHandler/handlerWebhook.js

+ 1 - 1
src/background/workflowEngine/blocksHandler/handlerWebhook.js

@@ -21,7 +21,7 @@ export async function webhook({ data, id }, { refData }) {
     const response = await executeWebhook({ ...data, headers: newHeaders });
 
     if (!response.ok) {
-      if (fallbackOutput.connections.length > 0) {
+      if (fallbackOutput.length > 0) {
         return {
           data: '',
           nextBlockId: fallbackOutput,