From 2601cc898cdc7524eec3a83fc98cdba9a9b2a3ef Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 20 Sep 2019 12:57:02 +0100 Subject: [PATCH] Fix undefined reference loading on mobile --- .../@node-red/editor-client/src/js/ui/common/menu.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js index 3e16ef9d3..131dc1f13 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/menu.js @@ -224,9 +224,9 @@ RED.menu = (function() { if (!alreadySet && opt.onselect) { triggerAction(opt.id,state); } - } - if (!opt.local && !alreadySet) { - RED.settings.set(opt.setting||("menu-"+opt.id), state); + if (!opt.local && !alreadySet) { + RED.settings.set(opt.setting||("menu-"+opt.id), state); + } } }