Skip to content

Commit 19fc51a

Browse files
committed
Fix - ignore promises when not defined
1 parent 8fdd42a commit 19fc51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gui/HierarchyPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ class HierarchyPainter extends BasePainter {
13131313
}
13141314

13151315
const pr = this.expandItem(this.itemFullName(hitem));
1316-
if (isPromise(pr))
1316+
if (isPromise(pr) && isObject(promises))
13171317
promises.push(pr);
13181318
if (hitem._childs !== undefined) hitem._isopen = true;
13191319
return hitem._isopen;

0 commit comments

Comments
 (0)