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