mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-23 15:29:05 +00:00
chore(ordering): make exception handling fail-safe
Would previously fail if no new parent was given.
This commit is contained in:
parent
5f266b20df
commit
809ec84309
@ -120,7 +120,7 @@ export default function BpmnOrderingProvider(eventBus, canvas, translate) {
|
||||
}
|
||||
|
||||
if (!actualParent) {
|
||||
throw new Error('no parent for <' + element.id + '> in <' + newParent.id + '>');
|
||||
throw new Error('no parent for <' + element.id + '> in <' + (newParent && newParent.id) + '>');
|
||||
}
|
||||
|
||||
return actualParent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user