π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π₯ Also catch error for sub-pages
Alicia Sykes915a5dfd38ef
diff --git a/src/store.js b/src/store.jsindex a17c38aa..57710c0d 100644--- a/src/store.js+++ b/src/store.js@@ -335,6 +335,7 @@ const store = new Vuex.Store({data = yaml.load(response.data);} catch (parseError) {commit(CRITICAL_ERROR_MSG, `Failed to parse YAML: ${parseError.message}`);+ return {};}// Replace missing root properties with empty objectsif (!data.appConfig) data.appConfig = {};@@ -417,14 +418,14 @@ const store = new Vuex.Store({commit(SET_IS_USING_LOCAL_CONFIG, true);}} catch (e) {- ErrorHandler('Malformed section data in local storage for sub-config');+ commit(CRITICAL_ERROR_MSG, 'Malformed section data in local storage for sub-config');}}// Set the configcommit(SET_CONFIG, configContent);commit(SET_CURRENT_CONFIG_INFO, { confPath: subConfigPath, confId: subConfigId });}).catch((err) => {- ErrorHandler(`Unable to load config from '${subConfigPath}'`, err);+ commit(CRITICAL_ERROR_MSG, `Unable to load config from '${subConfigPath}'`, err);});}return null;