Support displaying falsey node status values

Fixes #2246
This commit is contained in:
Nick O'Leary 2019-08-06 15:12:13 +01:00
parent 083212cffe
commit 542cf3147d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 1 additions and 1 deletions

View File

@ -3056,7 +3056,7 @@ RED.view = (function() {
}
thisNode.selectAll(".node_status").style(style);
}
if (d.status.text) {
if (d.status.hasOwnProperty('text')) {
thisNode.selectAll(".node_status_label").text(d.status.text);
} else {
thisNode.selectAll(".node_status_label").text("");