bpmn-js 9.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-viewer v9.0.0
2
+ * bpmn-js - bpmn-viewer v9.0.1
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -7998,6 +7998,11 @@
7998
7998
 
7999
7999
  plane.get('planeElement').forEach(function(diElement) {
8000
8000
  var bo = diElement.bpmnElement;
8001
+
8002
+ if (!bo) {
8003
+ return;
8004
+ }
8005
+
8001
8006
  var parent = bo.$parent;
8002
8007
 
8003
8008
  if (is$1(bo, 'bpmn:SubProcess') && !diElement.isExpanded) {
@@ -8027,7 +8032,7 @@
8027
8032
  var parent = element.parent;
8028
8033
 
8029
8034
  // parent is expanded, get nearest collapsed parent
8030
- while (parent && !collapsedElements.includes(parent)) {
8035
+ while (parent && collapsedElements.indexOf(parent) === -1) {
8031
8036
  parent = parent.$parent;
8032
8037
  }
8033
8038