Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:ambulance: Adds null check for appConfig (#627)

Alicia Sykesdecd3be6b02a
diff --git a/src/store.js b/src/store.js
index 41da33b4..da176930 100644
--- a/src/store.js
+++ b/src/store.js
@@ -136,9 +136,11 @@ const store = new Vuex.Store({
},
mutations: {
[SET_CONFIG](state, config) {
+ if (!config.appConfig) config.appConfig = {};
state.config = config;
},
[SET_REMOTE_CONFIG](state, config) {
+ if (!config.appConfig) config.appConfig = {};
state.remoteConfig = config;
},
[SET_LANGUAGE](state, lang) {