From 7c2576b0cfb0a15b2a14f6f5ea96de16f0c23b44 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 24 Dec 2019 02:22:56 +0100 Subject: viewer: Plugin for Optional chaining and Coalesce. Implemented tag operations (intersection, addition, substraction). Unified Tag.Search --- viewer/src/store/galleryStore.ts | 2 +- viewer/src/store/uiStore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/store') diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts index ca36a32..8a611ea 100644 --- a/viewer/src/store/galleryStore.ts +++ b/viewer/src/store/galleryStore.ts @@ -65,7 +65,7 @@ export default class GalleryStore extends VuexModule { const itemFound = item.properties.items .map(item => this.searchCurrentItem(item, path)) .find(item => Boolean(item)); - return itemFound || null; + return itemFound ?? null; } return null; } diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index 4a6f487..25d2a28 100644 --- a/viewer/src/store/uiStore.ts +++ b/viewer/src/store/uiStore.ts @@ -9,7 +9,7 @@ export default class UIStore extends VuexModule { fullscreen: boolean = false; mode: "navigation" | "search" = "navigation"; - currentTags: Tag.Node[] = []; + currentTags: Tag.Search[] = []; // --- -- cgit v1.2.3