fix(modeling/DropOnFlowBehavior): ensure label is created before executing
This commit is contained in:
parent
48490197a5
commit
ce361dabd7
|
@ -145,8 +145,7 @@ function DropOnFlow(eventBus, bpmnRules, modeling) {
|
|||
}
|
||||
}, true);
|
||||
|
||||
|
||||
this.postExecute('shape.create', function(context) {
|
||||
this.postExecuted('shape.create', function(context) {
|
||||
|
||||
var shape = context.shape,
|
||||
targetFlow = context.targetFlow,
|
||||
|
|
|
@ -47,7 +47,7 @@ function LabelSupport(eventBus, modeling, bpmnFactory) {
|
|||
var element = context.shape || context.connection,
|
||||
businessObject = element.businessObject;
|
||||
|
||||
if (!hasExternalLabel(businessObject)) {
|
||||
if (!hasExternalLabel(element)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue