🔥 Removes previous widget data structure

This commit is contained in:
Alicia Sykes 2021-12-22 20:13:07 +00:00
parent c17b93c1d4
commit c4134e033b
2 changed files with 0 additions and 14 deletions

View File

@ -54,9 +54,6 @@ const store = new Vuex.Store({
sections(state) {
return filterUserSections(state.config.sections || []);
},
widgets(state) {
return state.config.widgets || [];
},
theme(state) {
return state.config.appConfig.theme;
},

View File

@ -78,23 +78,12 @@ export default class ConfigAccumulator {
return sections;
}
/* Widgets */
widgets() {
const localWidgets = localStorage[localStorageKeys.CONF_WIDGETS];
if (localWidgets) {
const json = JSON.parse(localWidgets);
if (json.length >= 1) return json;
}
return this.conf.widgets || [];
}
/* Complete config */
config() {
return {
appConfig: this.appConfig(),
pageInfo: this.pageInfo(),
sections: this.sections(),
widgets: this.widgets(),
};
}
}