From 2a624440362da3c78b6c8de026e45c5c7ff5816c Mon Sep 17 00:00:00 2001 From: Lightling Date: Wed, 10 Apr 2024 18:09:24 -0400 Subject: [PATCH] handle missing tags --- src/views/gallery/gallery-list.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/gallery/gallery-list.vue b/src/views/gallery/gallery-list.vue index ca23072..02a06b1 100644 --- a/src/views/gallery/gallery-list.vue +++ b/src/views/gallery/gallery-list.vue @@ -149,7 +149,7 @@ const onToggleTag = (event: Event, tagId: string) => { }) } else { Object.keys(entries.value).forEach(entryId => { - entries.value[entryId].hidden = !entries.value[entryId].tags.some(own => tagsToggled.includes(own)) + entries.value[entryId].hidden = !entries.value[entryId].tags?.some(own => tagsToggled.includes(own)) }) } }