aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/galleryStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/store/galleryStore.ts')
-rw-r--r--viewer/src/store/galleryStore.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts
index c4a039f..663340f 100644
--- a/viewer/src/store/galleryStore.ts
+++ b/viewer/src/store/galleryStore.ts
@@ -18,6 +18,7 @@
18*/ 18*/
19 19
20import { createModule, mutation, action } from "vuex-class-component"; 20import { createModule, mutation, action } from "vuex-class-component";
21import Tools from '@/tools';
21 22
22const VuexModule = createModule({ 23const VuexModule = createModule({
23 namespaced: "galleryStore", 24 namespaced: "galleryStore",
@@ -88,7 +89,7 @@ export default class GalleryStore extends VuexModule {
88 const parts = tag.split('.'); 89 const parts = tag.split('.');
89 let lastPart: string | null = null; 90 let lastPart: string | null = null;
90 for (const part of parts) { 91 for (const part of parts) {
91 if (!index[part]) index[part] = { tag: part, items: [], children: {} }; 92 if (!index[part]) index[part] = { tag: part, tagfiltered: Tools.normalize(part), items: [], children: {} };
92 if (!index[part].items.includes(item)) index[part].items.push(item); 93 if (!index[part].items.includes(item)) index[part].items.push(item);
93 if (lastPart) index[lastPart].children[part] = index[part]; 94 if (lastPart) index[lastPart].children[part] = index[part];
94 lastPart = part; 95 lastPart = part;