🚑 Adds null check for appConfig (#627)
This commit is contained in:
@@ -136,9 +136,11 @@ const store = new Vuex.Store({
|
|||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
[SET_CONFIG](state, config) {
|
[SET_CONFIG](state, config) {
|
||||||
|
if (!config.appConfig) config.appConfig = {};
|
||||||
state.config = config;
|
state.config = config;
|
||||||
},
|
},
|
||||||
[SET_REMOTE_CONFIG](state, config) {
|
[SET_REMOTE_CONFIG](state, config) {
|
||||||
|
if (!config.appConfig) config.appConfig = {};
|
||||||
state.remoteConfig = config;
|
state.remoteConfig = config;
|
||||||
},
|
},
|
||||||
[SET_LANGUAGE](state, lang) {
|
[SET_LANGUAGE](state, lang) {
|
||||||
|
|||||||
Reference in New Issue
Block a user