Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
wederbn committed Aug 28, 2023
1 parent 35c044c commit 20c017a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function dispatchWorkflowEvent(type, workflowXml, workflowName) {
},
cancelable: true,
});
return modelerComponent.dispatchEvent(newEvent);
return modelerComponent?.dispatchEvent?.(newEvent) ?? true;
}

/**
Expand Down

0 comments on commit 20c017a

Please sign in to comment.