From decd3be6b02a0c071f5ea89b88929c8b466bc244 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 3 May 2022 20:40:30 +0100 Subject: [PATCH] :ambulance: Adds null check for appConfig (#627) --- src/store.js | 2 ++ 1 file changed, 2 insertions(+) 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) {