fix entries with no variants not loading in view
This commit is contained in:
parent
b7d60fde23
commit
4caf9ac0d5
1 changed files with 3 additions and 1 deletions
|
@ -53,8 +53,10 @@ const onTileClicked = (clickEvent: { event: Event, id: string }) => {
|
||||||
router.push({ name: routeConfig.name, query: { v: newPath }})
|
router.push({ name: routeConfig.name, query: { v: newPath }})
|
||||||
variants.value = newPath.split(';')
|
variants.value = newPath.split(';')
|
||||||
onDisplayEntries()
|
onDisplayEntries()
|
||||||
} else {
|
} else if (!!variants.value) {
|
||||||
router.push({ name: `${routeConfig.name?.toString()}: View Entry`, query: { v: `${(variants.value || []).join(';')};${id}` }})
|
router.push({ name: `${routeConfig.name?.toString()}: View Entry`, query: { v: `${(variants.value || []).join(';')};${id}` }})
|
||||||
|
} else {
|
||||||
|
router.push({ name: `${routeConfig.name?.toString()}: View Entry`, query: { v: `${id}` }})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue