diff --git a/src/store/config/actions.ts b/src/store/config/actions.ts index 4afe74217f..c4906bfead 100644 --- a/src/store/config/actions.ts +++ b/src/store/config/actions.ts @@ -27,7 +27,12 @@ export const actions: ActionTree = { } // Set the correct language. - dispatch('onLocaleChange', payload.general.locale) + if ( + payload.general && + payload.general.locale + ) { + dispatch('onLocaleChange', payload.general.locale) + } }, /**