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

Only check for reordered outputs if outputMap defiend

This commit is contained in:
Nick O'Leary 2017-05-22 13:45:56 +01:00
parent 2a3e355437
commit 6278dfa77e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

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