From 4caf9ac0d5404a01ea91cbfe1a3effbb98e822a9 Mon Sep 17 00:00:00 2001 From: Lightling Date: Wed, 20 Mar 2024 00:35:15 -0400 Subject: [PATCH] fix entries with no variants not loading in view --- src/views/gallery-list.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}` }}) } }