fixed article graphql refactoring, continued to improve graphql for materials

This commit is contained in:
2020-12-22 16:36:06 +01:00
parent 1dcd627cab
commit f39079c616
9 changed files with 452 additions and 192 deletions

View File

@ -67,9 +67,9 @@ export default {
commit('setInfiniteState', $infiniteLoadingstate)
dispatch('getItems')
},
getItemIndex ({ dispatch, commit, state }, uuid) {
getItemIndex ({ dispatch, commit, state }, nid) {
return state.items.findIndex((e) => {
return e.uuid == uuid
return e.nid == nid
})
},
getPrevNextItems ({ dispatch, commit, state }, index) {