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
1 changed files with 1 additions and 1 deletions

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;