cateditor: remove unnecessary 'sections' getter
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
</DragListHeading>
|
</DragListHeading>
|
||||||
|
|
||||||
<div id="sections" class="list-group">
|
<div id="sections" class="list-group">
|
||||||
<div v-for="item in sections" :key="item.id">
|
<div v-for="item in catalog.sections" :key="item.id">
|
||||||
<v-hover :key="item.id">
|
<v-hover :key="item.id">
|
||||||
<v-list-tile
|
<v-list-tile
|
||||||
slot-scope="{ hover }"
|
slot-scope="{ hover }"
|
||||||
@ -186,7 +186,6 @@ export default {
|
|||||||
]),
|
]),
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
'section',
|
'section',
|
||||||
'sections',
|
|
||||||
'selectedSection',
|
'selectedSection',
|
||||||
'selectedModel',
|
'selectedModel',
|
||||||
'selectedMaterial',
|
'selectedMaterial',
|
||||||
|
|||||||
@ -30,10 +30,6 @@ export const store = new Vuex.Store({
|
|||||||
return state.materials[id]
|
return state.materials[id]
|
||||||
},
|
},
|
||||||
|
|
||||||
sections: state => {
|
|
||||||
return state.catalog.sections
|
|
||||||
},
|
|
||||||
|
|
||||||
section: state => id => {
|
section: state => id => {
|
||||||
return state.catalog.sections.find(s => s.id === id)
|
return state.catalog.sections.find(s => s.id === id)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user