Skip to content

Commit bdfee40

Browse files
committed
Fix - provide itemreq in handleAfterRequest
1 parent 16a9bdd commit bdfee40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/gui/HierarchyPainter.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2718,6 +2718,8 @@ class HierarchyPainter extends BasePainter {
27182718

27192719
return new Promise(resolveFunc => {
27202720

2721+
let itemreq = null;
2722+
27212723
createHttpRequest(url, req_kind, obj => {
27222724

27232725
let handleAfterRequest = func => {
@@ -2736,7 +2738,7 @@ class HierarchyPainter extends BasePainter {
27362738
} else {
27372739
handleAfterRequest(draw_handle?.after_request)
27382740
}
2739-
}, undefined, true).then(xhr => xhr.send(null));
2741+
}, undefined, true).then(xhr => { itemreq = xhr; xhr.send(null); });
27402742
});
27412743
}
27422744

0 commit comments

Comments
 (0)