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 cd1d569ac..1917b55fd 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 @@ -185,13 +185,12 @@ module.exports = { } if (theme.deployButton) { + themeSettings.deployButton = {}; + if (theme.deployButton.label) { + themeSettings.deployButton.label = theme.deployButton.label; + } if (theme.deployButton.type == "simple") { - themeSettings.deployButton = { - type: "simple" - } - if (theme.deployButton.label) { - themeSettings.deployButton.label = theme.deployButton.label; - } + themeSettings.deployButton.type = theme.deployButton.type; if (theme.deployButton.icon) { url = serveFile(themeApp,"/deploy/",theme.deployButton.icon); if (url) {