Skip to content

Commit

Permalink
Update client-bundle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan-moskovenko authored Aug 18, 2023
1 parent 0d2670c commit 4c38d8a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/client-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function PropertyInfoPlugin(eventBus, overlays, elementRegistry, editorActions)

function isOverlayRequired(element) {
return element.businessObject.$instanceOf('bpmn:FlowNode')
|| element.businessObject.$instanceOf('bpmn:Participant')
|| element.businessObject.$instanceOf('bpmn:Participant')
|| element.businessObject.$instanceOf('bpmn:SequenceFlow');
}

Expand Down Expand Up @@ -187,7 +187,9 @@ function PropertyInfoPlugin(eventBus, overlays, elementRegistry, editorActions)
var elements = elementRegistry.getAll();
for (var elementCount in elements) {
var element = elements[elementCount];
addIdsStyle(element);
if (isOverlayRequired(element)) {
addIdsStyle(element);
}
}
}
}
Expand Down Expand Up @@ -263,8 +265,7 @@ function PropertyInfoPlugin(eventBus, overlays, elementRegistry, editorActions)
return;
}

if ((!element.businessObject.$instanceOf('bpmn:FlowNode') || !element.businessObject.$instanceOf('bpmn:Participant'))
&& element.businessObject.$instanceOf('bpmn:SequenceFlow')) {
if (element.businessObject.$instanceOf('bpmn:SequenceFlow')) {
return;
}

Expand Down

0 comments on commit 4c38d8a

Please sign in to comment.