From 3de5478d04cb7426f51cb76aa9c55b8c35548a99 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Tue, 21 Mar 2017 07:48:57 +0100 Subject: [PATCH] fix(draw): properly render data-object collection marker Closes #672 --- lib/draw/BpmnRenderer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/draw/BpmnRenderer.js b/lib/draw/BpmnRenderer.js index a3d44ad8..69435813 100644 --- a/lib/draw/BpmnRenderer.js +++ b/lib/draw/BpmnRenderer.js @@ -1827,8 +1827,9 @@ function isThrowEvent(event) { } function isCollection(element) { - return element.isCollection || - (element.elementObjectRef && element.elementObjectRef.isCollection); + var dataObject = element.dataObjectRef; + + return element.isCollection || (dataObject && dataObject.isCollection); } function getDi(element) {