Skip to content

Commit 0c9c0cc

Browse files
committed
Fix logic failure
1 parent 7a3172b commit 0c9c0cc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

scripts/JSRoot.hierarchy.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,19 +1034,19 @@ JSROOT.define(['d3', 'painter'], (d3, jsrp) => {
10341034
if (hitem && hitem._title) d3node.attr('title', "Executing " + hitem._title);
10351035
}
10361036

1037-
return JSROOT.httpRequest(url + urlargs, 'text');
1038-
}).then(res => {
1039-
if (!d3node.empty()) {
1040-
let col = ((res != null) && (res != 'false')) ? 'green' : 'red';
1041-
if (hitem && hitem._title) d3node.attr('title', hitem._title + " lastres=" + res);
1042-
d3node.style('background', col);
1043-
setTimeout(() => d3node.style('background', ''), 2000);
1044-
if ((col == 'green') && ('_hreload' in hitem))
1045-
this.reload();
1046-
if ((col == 'green') && ('_update_item' in hitem))
1047-
this.updateItems(hitem._update_item.split(";"));
1048-
}
1049-
return res;
1037+
return JSROOT.httpRequest(url + urlargs, 'text').then(res => {
1038+
if (!d3node.empty()) {
1039+
let col = ((res != null) && (res != 'false')) ? 'green' : 'red';
1040+
if (hitem && hitem._title) d3node.attr('title', hitem._title + " lastres=" + res);
1041+
d3node.style('background', col);
1042+
setTimeout(() => d3node.style('background', ''), 2000);
1043+
if ((col == 'green') && ('_hreload' in hitem))
1044+
this.reload();
1045+
if ((col == 'green') && ('_update_item' in hitem))
1046+
this.updateItems(hitem._update_item.split(";"));
1047+
}
1048+
return res;
1049+
});
10501050
});
10511051
}
10521052

0 commit comments

Comments
 (0)