🐛 Fix config not saving from JSON editor

This commit is contained in:
Alicia Sykes
2024-04-13 14:05:49 +01:00
parent 91e4cfe14d
commit 4ea77a1015
4 changed files with 20 additions and 11 deletions

View File

@@ -52,9 +52,11 @@ const ThemingMixin = {
watch: {
/* When theme in VueX store changes, then update theme */
themeFromStore(newTheme) {
this.resetToDefault();
this.selectedTheme = newTheme;
this.updateTheme(newTheme);
if (newTheme) {
this.resetToDefault();
this.selectedTheme = newTheme;
this.updateTheme(newTheme);
}
},
},
methods: {