diff options
Diffstat (limited to 'viewer/src/store/galleryStore.ts')
-rw-r--r-- | viewer/src/store/galleryStore.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts index a57122c..5458f20 100644 --- a/viewer/src/store/galleryStore.ts +++ b/viewer/src/store/galleryStore.ts | |||
@@ -23,11 +23,10 @@ import Navigation from "@/services/navigation"; | |||
23 | 23 | ||
24 | const VuexModule = createModule({ | 24 | const VuexModule = createModule({ |
25 | namespaced: "galleryStore", | 25 | namespaced: "galleryStore", |
26 | strict: true | 26 | strict: true, |
27 | }) | 27 | }); |
28 | 28 | ||
29 | export default class GalleryStore extends VuexModule { | 29 | export default class GalleryStore extends VuexModule { |
30 | |||
31 | config: Gallery.Config | null = null; | 30 | config: Gallery.Config | null = null; |
32 | galleryIndex: Gallery.Index | null = null; | 31 | galleryIndex: Gallery.Index | null = null; |
33 | tagsIndex: Tag.Index = {}; | 32 | tagsIndex: Tag.Index = {}; |
@@ -65,8 +64,7 @@ export default class GalleryStore extends VuexModule { | |||
65 | 64 | ||
66 | get currentItemPath(): Gallery.Item[] { | 65 | get currentItemPath(): Gallery.Item[] { |
67 | const root = this.galleryIndex?.tree; | 66 | const root = this.galleryIndex?.tree; |
68 | if (root) | 67 | if (root) return Navigation.searchCurrentItemPath(root, this.currentPath); |
69 | return Navigation.searchCurrentItemPath(root, this.currentPath); | ||
70 | return []; | 68 | return []; |
71 | } | 69 | } |
72 | 70 | ||