update AllNodesOfVariant store call
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@ import api from '@/api'
|
||||
import {
|
||||
DATA_LEVELS,
|
||||
ID_VARIANTS,
|
||||
VARIANT_IDS,
|
||||
RELATIONS // FIXME REMOVE WHEN DB MAJ
|
||||
} from '@/store/utils'
|
||||
import {
|
||||
@@ -102,7 +103,7 @@ export default {
|
||||
if (state.ids[variant] === undefined) {
|
||||
// FIXME UPDATE WHEN QUERY OK
|
||||
// await api.query(AllNodesOfVariant, { variantId: VARIANT_IDS[variant] }).then(data => {
|
||||
await api.query(AllNodesOfVariant).then(data => {
|
||||
await api.query(AllNodesOfVariant, { variantId: VARIANT_IDS[variant] }).then(data => {
|
||||
commit('SET_ALL_NODES_IDS', [variant, data.nodes])
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user