update backend object mapping

This commit is contained in:
j3d1 2019-12-15 20:55:42 +01:00
parent 77de24409f
commit 9ff2739d3b

View file

@ -29,7 +29,7 @@ const store = new Vuex.Store({
router.push({path: `/${slug}/${view}`});
},
replaceLoadedItems(state, newItems) {
state.loadedItems = newItems.map(e => ({...e, description: e.bezeichnung, box: e.container, uid: e.item_uid}));
state.loadedItems = newItems.map(e => ({...e, uid: e.item_uid}));
},
setLayout(state, layout) {
state.layout = layout;