chore(ordering): make exception handling fail-safe

Would previously fail if no new parent was given.
This commit is contained in:
Nico Rehwaldt 2021-06-22 15:47:55 +02:00 committed by Philipp Fromme
parent 5f266b20df
commit 809ec84309

View File

@ -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;