diff --git a/lib/features/modeling/behavior/DataStoreBehavior.js b/lib/features/modeling/behavior/DataStoreBehavior.js index 74242e56..8689d2ad 100644 --- a/lib/features/modeling/behavior/DataStoreBehavior.js +++ b/lib/features/modeling/behavior/DataStoreBehavior.js @@ -144,7 +144,9 @@ export default function DataStoreBehavior( .filter(function(dataStore) { return isDescendant(dataStore, shape); }) - .forEach(updateDataStoreParent); + .forEach(function(dataStore) { + updateDataStoreParent(dataStore); + }); } }); diff --git a/test/spec/features/modeling/behavior/DataStoreBehavior.remove-participant.bpmn b/test/spec/features/modeling/behavior/DataStoreBehavior.remove-participant.bpmn index df7905dc..48576bc7 100644 --- a/test/spec/features/modeling/behavior/DataStoreBehavior.remove-participant.bpmn +++ b/test/spec/features/modeling/behavior/DataStoreBehavior.remove-participant.bpmn @@ -1,11 +1,12 @@ - + + @@ -22,6 +23,9 @@ + + +