diff options
Diffstat (limited to 'viewer/src/store')
-rw-r--r-- | viewer/src/store/galleryStore.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts index 63e5109..4751561 100644 --- a/viewer/src/store/galleryStore.ts +++ b/viewer/src/store/galleryStore.ts | |||
@@ -7,9 +7,9 @@ const VuexModule = createModule({ | |||
7 | 7 | ||
8 | export default class GalleryStore extends VuexModule { | 8 | export default class GalleryStore extends VuexModule { |
9 | 9 | ||
10 | galleryItems: Gallery.Item[] = []; | 10 | galleryItems: Gallery.Item | null = null; |
11 | 11 | ||
12 | @mutation setGalleryItems(galleryItems: Gallery.Item[]) { | 12 | @mutation setGalleryItems(galleryItems: Gallery.Item) { |
13 | this.galleryItems = galleryItems; | 13 | this.galleryItems = galleryItems; |
14 | } | 14 | } |
15 | 15 | ||
@@ -18,4 +18,5 @@ export default class GalleryStore extends VuexModule { | |||
18 | .then(response => response.json()) | 18 | .then(response => response.json()) |
19 | .then(this.setGalleryItems); | 19 | .then(this.setGalleryItems); |
20 | } | 20 | } |
21 | |||
21 | } \ No newline at end of file | 22 | } \ No newline at end of file |