Fix for lanes that doesn't break the world.

This commit is contained in:
Dan 2023-04-05 10:42:56 -04:00
parent 5f849c6906
commit 6391337a86
1 changed files with 3 additions and 1 deletions

View File

@ -46,11 +46,13 @@ export default class DataObjectInterceptor extends CommandInterceptor {
}
} else if (is(businessObject, 'bpmn:DataObject')) {
// For data objects, only update the flowElements for new data objects, and set the parent so it doesn't get moved.
if (typeof(businessObject.$parent) === 'undefined') {
if (typeof (businessObject.$parent) === 'undefined') {
const flowElements = realParent.get('flowElements');
flowElements.push(businessObject);
businessObject.$parent = realParent;
}
} else {
bpmnUpdater.__proto__.updateSemanticParent.call(bpmnUpdater, businessObject, parentBusinessObject);
}
};