diff --git a/src/views/gallery-list.vue b/src/views/gallery-list.vue index ea6815b..9f89b5a 100644 --- a/src/views/gallery-list.vue +++ b/src/views/gallery-list.vue @@ -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}` }}) } }