From 6278dfa77e4c954aacd81213409091061c04c482 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 22 May 2017 13:45:56 +0100 Subject: [PATCH] Only check for reordered outputs if outputMap defiend --- editor/js/ui/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index ae4fa4c34..f9883e418 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -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- - if (outputMap.hasOwnProperty(index)) { + if (outputMap && outputMap.hasOwnProperty(index)) { index = parseInt(outputMap[index]); if (index === -1) { return;