From e013afb053e633ec24e0f7fece403f5da77b9dca Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 4 Mar 2015 21:44:14 +0000 Subject: [PATCH] Import/Export dialogs cannot be cancelled Fixes #577 --- public/red/ui/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 0fe186723..4aba110fd 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -257,7 +257,7 @@ RED.editor = (function() { id: "node-dialog-cancel", text: "Cancel", click: function() { - if (editing_node._def) { + if (editing_node && editing_node._def) { if (editing_node._def.oneditcancel) { editing_node._def.oneditcancel.call(editing_node); }