From 31d16f6fb20eb4935fc75e83bc565070ba7e5656 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sun, 2 Feb 2020 19:59:29 +0100 Subject: viewer: crash fix for proposed tags when using discriminant format --- viewer/src/components/LdProposition.vue | 1 + 1 file changed, 1 insertion(+) (limited to 'viewer') diff --git a/viewer/src/components/LdProposition.vue b/viewer/src/components/LdProposition.vue index 6be0aee..0a293a9 100644 --- a/viewer/src/components/LdProposition.vue +++ b/viewer/src/components/LdProposition.vue @@ -58,6 +58,7 @@ export default class LdProposition extends Vue { } else { // Tags count from the current directory this.$galleryStore.currentItem?.tags + .flatMap(tag => tag.split(".")) .map(tag => this.$galleryStore.tags[tag]) // FIXME: Folders with the same name are merged in the index .forEach(tagindex => (propositions[tagindex.tag] = tagindex.items.length)); } -- cgit v1.2.3