From 1af21735a9c185df8595830a34473077c201e5ff Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 29 Apr 2021 15:32:26 +0100 Subject: [PATCH] Fix theme handling when no editorTheme.page setting --- packages/node_modules/@node-red/editor-api/lib/editor/theme.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js index fc65753bf..de0106dbe 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js @@ -231,6 +231,7 @@ module.exports = { themePlugin.path ); themeContext.page.css = cssFiles.concat(themeContext.page.css || []) + theme.page = theme.page || {_:{}} theme.page._.css = cssFiles.concat(theme.page._.css || []) } if (themePlugin.scripts) { @@ -241,6 +242,7 @@ module.exports = { themePlugin.path ) themeContext.page.scripts = scriptFiles.concat(themeContext.page.scripts || []) + theme.page = theme.page || {_:{}} theme.page._.scripts = cssFiles.concat(theme.page._.scripts || []) } }