diff --git a/src/lib/programs/site.js b/src/lib/programs/site.js index e32dbed..a3042d8 100644 --- a/src/lib/programs/site.js +++ b/src/lib/programs/site.js @@ -731,12 +731,12 @@ export async function siteCommandDetected(commandRun) { initialValue: val, options: list, }); - let themes = await HAXCMS.getThemes(); - if (themes && commandRun.options.theme && themes[commandRun.options.theme]) { - activeHaxsite.manifest.metadata.theme = themes[commandRun.options.theme]; - activeHaxsite.manifest.save(false); - recipe.log(siteLoggingName, commandString(commandRun)); - } + } + let themes = await HAXCMS.getThemes(); + if (themes && commandRun.options.theme && themes[commandRun.options.theme]) { + activeHaxsite.manifest.metadata.theme = themes[commandRun.options.theme]; + activeHaxsite.manifest.save(false); + recipe.log(siteLoggingName, commandString(commandRun)); } } catch(e) { @@ -1420,4 +1420,4 @@ async function nodeToHaxElement(node, eventName = "insert-element") { element.eventName = eventName; } return element; -} \ No newline at end of file +}