Skip to content

Commit

Permalink
Fix: ESLint: Do not pass function isChildOfSubProcess directly to `…
Browse files Browse the repository at this point in the history
….filter(…)`.(unicorn/no-array-callback-reference)
  • Loading branch information
csouchet committed Aug 28, 2023
1 parent 4800ef4 commit a282372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/ts/pages/elements-identification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function computeStyleUpdateByKind(bpmnKind: BpmnElementKind): StyleUpdate {
}

function updateStyleByAPI(bpmnIds: string[], bpmnKind: ShapeBpmnElementKind): void {
const subProcessChildrenIds = bpmnIds.filter(isChildOfSubProcess);
const subProcessChildrenIds = bpmnIds.filter(element => isChildOfSubProcess(element));
const otherIds = bpmnIds.filter(bpmnId => !subProcessChildrenIds.includes(bpmnId));

if (subProcessChildrenIds.length > 0) {
Expand Down

0 comments on commit a282372

Please sign in to comment.