aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/Gallery.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/views/Gallery.vue')
-rw-r--r--viewer/src/views/Gallery.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/viewer/src/views/Gallery.vue b/viewer/src/views/Gallery.vue
index 954903a..2020280 100644
--- a/viewer/src/views/Gallery.vue
+++ b/viewer/src/views/Gallery.vue
@@ -13,7 +13,7 @@ import GalleryImage from "./GalleryImage.vue";
13@Component({ 13@Component({
14 components: { GalleryDirectory, GalleryImage }, 14 components: { GalleryDirectory, GalleryImage },
15}) 15})
16export default class Root extends Vue { 16export default class Gallery extends Vue {
17 @Prop(String) readonly pathMatch!: string; 17 @Prop(String) readonly pathMatch!: string;
18 18
19 get isDirectory(): boolean { 19 get isDirectory(): boolean {
@@ -25,8 +25,8 @@ export default class Root extends Vue {
25 } 25 }
26 26
27 get currentItem(): Gallery.Item | null { 27 get currentItem(): Gallery.Item | null {
28 const galleryItems = this.$galleryStore.galleryItems; 28 const galleryItemsRoot = this.$galleryStore.galleryItemsRoot;
29 if (galleryItems) return this.searchCurrentItem(galleryItems, this.pathMatch); 29 if (galleryItemsRoot) return this.searchCurrentItem(galleryItemsRoot, this.pathMatch);
30 return null; 30 return null;
31 } 31 }
32 32