Skip to content

Commit

Permalink
fix: fetch only the draft versions for the workflow we want
Browse files Browse the repository at this point in the history
  • Loading branch information
Devessier committed Sep 3, 2024
1 parent fb3cfb0 commit 9055cd9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ export const useFindWorkflowWithCurrentVersion = (
status: {
eq: 'DRAFT',
},
workflowId: {
eq: workflowId,
},
},
limit: 1,
skip: !isDefined(workflowId),
});

if (!isDefined(workflow)) {
Expand Down

0 comments on commit 9055cd9

Please sign in to comment.