update text depart select
This commit is contained in:
@@ -221,6 +221,14 @@ export default {
|
||||
// LibraryOptions options
|
||||
tagsOptions: state => state.tagsOptions,
|
||||
|
||||
nodesDeparts: (state, getters, rootState) => {
|
||||
const departIds = rootState.ids.depart
|
||||
if (departIds === undefined) return
|
||||
const nodes = departIds.map(id => rootState.nodes[id])
|
||||
if (nodes.some(node => node === undefined)) return
|
||||
return nodes
|
||||
},
|
||||
|
||||
nodesDepartsOptions: (state, getters, rootState) => {
|
||||
const departIds = rootState.ids.depart
|
||||
if (departIds === undefined) return
|
||||
|
||||
Reference in New Issue
Block a user