🩹 Fixes cannot type with modal open

This commit is contained in:
Alicia Sykes 2021-10-10 15:12:35 +01:00
parent eae8dc476c
commit 048f0cb112
1 changed files with 4 additions and 2 deletions

View File

@ -100,8 +100,10 @@ export default {
},
/* Closes the theme color configurator popup */
closeThemeConfigurator() {
this.$store.commit(Keys.SET_MODAL_OPEN, false);
this.themeConfiguratorOpen = false;
if (this.themeConfiguratorOpen) {
this.$store.commit(Keys.SET_MODAL_OPEN, false);
this.themeConfiguratorOpen = false;
}
},
/* Updates theme. Checks if the new theme is local or external,
and calls appropirate updating function. Updates local storage */