diff options
author | Zero~Informatique | 2020-02-02 19:59:29 +0100 |
---|---|---|
committer | Notkea | 2020-02-02 20:47:54 +0100 |
commit | 31d16f6fb20eb4935fc75e83bc565070ba7e5656 (patch) | |
tree | f96b800ea9b691c6dcf09905e6539808de8adc65 /viewer/src/components/LdProposition.vue | |
parent | bd7b62e97ac3fc89be4df9f3bb15af6b3e6c2724 (diff) | |
download | ldgallery-31d16f6fb20eb4935fc75e83bc565070ba7e5656.tar.gz |
viewer: crash fix for proposed tags when using discriminant format
Diffstat (limited to 'viewer/src/components/LdProposition.vue')
-rw-r--r-- | viewer/src/components/LdProposition.vue | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
58 | } else { | 58 | } else { |
59 | // Tags count from the current directory | 59 | // Tags count from the current directory |
60 | this.$galleryStore.currentItem?.tags | 60 | this.$galleryStore.currentItem?.tags |
61 | .flatMap(tag => tag.split(".")) | ||
61 | .map(tag => this.$galleryStore.tags[tag]) // FIXME: Folders with the same name are merged in the index | 62 | .map(tag => this.$galleryStore.tags[tag]) // FIXME: Folders with the same name are merged in the index |
62 | .forEach(tagindex => (propositions[tagindex.tag] = tagindex.items.length)); | 63 | .forEach(tagindex => (propositions[tagindex.tag] = tagindex.items.length)); |
63 | } | 64 | } |