fix entries with no variants not loading in view

This commit is contained in:
lightling 2024-03-20 00:35:15 -04:00
parent b7d60fde23
commit 4caf9ac0d5

View file

@ -53,8 +53,10 @@ const onTileClicked = (clickEvent: { event: Event, id: string }) => {
router.push({ name: routeConfig.name, query: { v: newPath }})
variants.value = newPath.split(';')
onDisplayEntries()
} else {
} else if (!!variants.value) {
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}` }})
}
}