Skip to content

Commit

Permalink
fix(rules/no-overlapping-elements): properly handle missing element DI
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed May 24, 2024
1 parent 68273ef commit 2dc1309
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rules/no-overlapping-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ function checkProcess(node, elementsToReport, elementsOutsideToReport, diObjects
// check child elements outside parent boundary
// TODO: Skipped DataSoreReferences for now
flowElements.filter(element => !is(element, 'bpmn:DataStoreReference')).forEach(element => {

if (!diObjects.has(element)) {
return;
}

if (isOutsideParentBoundary(diObjects.get(element).bounds, parentDi.bounds)) {
elementsOutsideToReport.add(element);
}
Expand Down

0 comments on commit 2dc1309

Please sign in to comment.