Fix for lanes that doesn't break the world.
This commit is contained in:
parent
5f849c6906
commit
6391337a86
|
@ -46,11 +46,13 @@ export default class DataObjectInterceptor extends CommandInterceptor {
|
||||||
}
|
}
|
||||||
} else if (is(businessObject, 'bpmn:DataObject')) {
|
} 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.
|
// 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');
|
const flowElements = realParent.get('flowElements');
|
||||||
flowElements.push(businessObject);
|
flowElements.push(businessObject);
|
||||||
businessObject.$parent = realParent;
|
businessObject.$parent = realParent;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
bpmnUpdater.__proto__.updateSemanticParent.call(bpmnUpdater, businessObject, parentBusinessObject);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue