Skip to content

Commit

Permalink
fix: error when opening some workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Oct 13, 2023
1 parent 3d0181e commit df7036b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function findTriggerBlock(drawflow = {}) {
if (!drawflow) return null;

if (drawflow.drawflow) {
const blocks = Object.values(drawflow.drawflow?.Home?.data);
const blocks = Object.values(drawflow.drawflow?.Home?.data ?? {});
if (!blocks) return null;

return blocks.find(({ name }) => name === 'trigger');
Expand Down

0 comments on commit df7036b

Please sign in to comment.