Skip to content

Commit

Permalink
400 - client - Use forEach instead of map
Browse files Browse the repository at this point in the history
  • Loading branch information
ivicac committed Aug 1, 2023
1 parent 1e3b5f4 commit df09951
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export const ProjectInstanceDialogWorkflowListItem = ({

const connections: WorkflowConnectionModel[] = [];

workflow.tasks?.map(
workflow.tasks?.forEach(
(task) => task.connections && connections.concat(task.connections)
);
workflow.triggers?.map(
workflow.triggers?.forEach(
(trigger) =>
trigger.connections && connections.concat(trigger.connections)
);
Expand Down

0 comments on commit df09951

Please sign in to comment.