catalog list: fix bug on data update when pub cat selected
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user