update text depart select

This commit is contained in:
axolotle
2021-08-01 19:39:24 +02:00
parent 2a175d315c
commit f4dc9f3fdb
3 changed files with 80 additions and 11 deletions
+8
View File
@@ -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