Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Apr 4, 2024
1 parent 3410270 commit 735f69a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/composables/useRunWorkflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,6 @@ describe('useRunWorkflow({ router })', () => {

expect(result.startNodeNames).toContain('node1');
expect(result.runData).toEqual(undefined);
})
});
});
});
5 changes: 4 additions & 1 deletion packages/editor-ui/src/composables/useRunWorkflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ export function useRunWorkflow(options: { router: ReturnType<typeof useRouter> }
for (const parentNode of parentNodes) {
// We want to execute nodes that don't have run data neither pin data
// in addition, if a node failed we want to execute it again
if ((!runData[parentNode]?.length && !pinData?.[parentNode]?.length) || runData[parentNode]?.[0]?.error !== undefined) {
if (
(!runData[parentNode]?.length && !pinData?.[parentNode]?.length) ||
runData[parentNode]?.[0]?.error !== undefined
) {
// When we hit a node which has no data we stop and set it
// as a start node the execution from and then go on with other
// direct input nodes
Expand Down

0 comments on commit 735f69a

Please sign in to comment.