diff --git a/cateditor/src/pages/list/store/index.js b/cateditor/src/pages/list/store/index.js index 6b0346a..7242041 100644 --- a/cateditor/src/pages/list/store/index.js +++ b/cateditor/src/pages/list/store/index.js @@ -57,7 +57,9 @@ export const store = new Vuex.Store({ commit('setSelectedCatalog', response.data.catalogs[0]) } else { let cat = response.data.catalogs.find(c => c.id === state.selectedCatalog.id) - commit('setSelectedCatalog', cat) + if (cat) { + commit('setSelectedCatalog', cat) + } // otherwise might be a public catalog } } } else {