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:
parent
c63b8a4ebc
commit
420e8c001b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user