diff --git a/dev/ts/pages/elements-identification.ts b/dev/ts/pages/elements-identification.ts index f8f168b7c5..1653dcfa1e 100644 --- a/dev/ts/pages/elements-identification.ts +++ b/dev/ts/pages/elements-identification.ts @@ -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) {