From e403924d2b04737eef39b04d3acf95e4e6862067 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 27 Feb 2014 16:28:12 +0000 Subject: [PATCH] Only refresh info if editing_node not null --- public/red/ui/editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index e39af3f00..464babaef 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -274,7 +274,9 @@ RED.editor = function() { } $( this ).dialog('option','height','auto'); $( this ).dialog('option','width','500'); - RED.sidebar.info.refresh(editing_node); + if (editing_node) { + RED.sidebar.info.refresh(editing_node); + } RED.sidebar.config.refresh(); editing_node = null; }