π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:bug: Check items exist before itterating #415
Alicia Sykesf25aa07d5f91
diff --git a/src/store.js b/src/store.jsindex 5cb0be23..79848645 100644--- a/src/store.js+++ b/src/store.js@@ -70,8 +70,10 @@ const store = new Vuex.Store({getItemById: (state, getters) => (id) => {let item;getters.sections.forEach(sec => {- const foundItem = sec.items.find((itm) => itm.id === id);- if (foundItem) item = foundItem;+ if (sec.items) {+ const foundItem = sec.items.find((itm) => itm.id === id);+ if (foundItem) item = foundItem;+ }});return item;},