From 9832394f8e4189d1ba4262021667c7a83c9565f7 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 28 Mar 2019 13:33:54 +0000 Subject: [PATCH] Allow subflow instance to override env var with falsey values Fixes #2113 --- .../node_modules/@node-red/editor-client/src/js/ui/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index a0c249e09..102374c29 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -571,13 +571,13 @@ RED.editor = (function() { }); valueField.typedInput('type', opt.parent?(opt.type||opt.parent.type):opt.type); - valueField.typedInput('value', opt.parent?(opt.value||opt.parent.value):opt.value); + valueField.typedInput('value', opt.parent?((opt.value !== undefined)?opt.value:opt.parent.value):opt.value); var actionButton = $('',{href:"#",class:"red-ui-editableList-item-remove editor-button editor-button-small"}).appendTo(container); $('',{class:"fa "+(opt.parent?"fa-reply":"fa-remove")}).appendTo(actionButton); container.parent().addClass("red-ui-editableList-item-removable"); if (opt.parent) { - if (opt.value && (opt.value !== opt.parent.value || opt.type !== opt.parent.type)) { + if ((opt.value !== undefined) && (opt.value !== opt.parent.value || opt.type !== opt.parent.type)) { actionButton.show(); } else { actionButton.hide();