1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #2284 from node-red-hitachi/allow-subflow-label-row-wo-name

Allow subflow label row without environment variable name
This commit is contained in:
Nick O'Leary 2019-09-16 15:18:44 +01:00 committed by GitHub
commit 4709ddea5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1493,7 +1493,8 @@ RED.subflow = (function() {
var entry = $(this);
var item = entry.data('data');
var name = (item.parent?item.name:item.nameField.val()).trim();
if (name !== "") {
if ((name !== "") ||
(item.ui && (item.ui.type === "none"))) {
var valueInput = item.valueField;
var value = valueInput.typedInput("value");
var type = valueInput.typedInput("type");