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

Fix setting output port labels

This commit is contained in:
Nick O'Leary 2019-05-21 15:24:45 +01:00
parent c63b8a4ebc
commit 420e8c001b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1068,7 +1068,7 @@ RED.editor = (function() {
hasNonBlankLabel = false; hasNonBlankLabel = false;
newValue = new Array(editing_node.outputs); newValue = new Array(editing_node.outputs);
outputLabels.each(function() { outputLabels.each(function() {
var index = $(this).attr('id').substring(23); // red-ui-editor-node-label-form-output-<index> var index = $(this).attr('id').substring("red-ui-editor-node-label-form-output-".length);
if (outputMap && outputMap.hasOwnProperty(index)) { if (outputMap && outputMap.hasOwnProperty(index)) {
index = parseInt(outputMap[index]); index = parseInt(outputMap[index]);
if (index === -1) { if (index === -1) {