Explorar el Código

fix: HTTP request block return success when error occurs

Ahmad Kholid hace 3 años
padre
commit
ca1d0c8cf0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/background/workflowEngine/blocksHandler/handlerWebhook.js

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

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