CatalogList: simplify using mapState
This commit is contained in:
@ -16,21 +16,6 @@ export const store = new Vuex.Store({
|
||||
},
|
||||
|
||||
getters: {
|
||||
getMyCatalogs(state) {
|
||||
return state.myCatalogs
|
||||
},
|
||||
getLoadingMyCatalogs(state) {
|
||||
return state.loadingMyCatalogs
|
||||
},
|
||||
getPublicCatalogs(state) {
|
||||
return state.publicCatalogs
|
||||
},
|
||||
getLoadingPublicCatalogs(state) {
|
||||
return state.loadingPublicCatalogs
|
||||
},
|
||||
getSelectedCatalog(state) {
|
||||
return state.selectedCatalog
|
||||
},
|
||||
findCatalog: (state) => (id) => {
|
||||
let cat = state.myCatalogs.find(c => c.id === id)
|
||||
if (cat !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user