From 34bcf9339c86f145442b9edc799416462bf21fc5 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 8 May 2020 19:28:07 +0200 Subject: viewer/GalleryNavigation: revert to static template component dispatching We'll see for dynamic component loading later. --- viewer/src/services/navigation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/services') diff --git a/viewer/src/services/navigation.ts b/viewer/src/services/navigation.ts index fa17990..aa7ef5e 100644 --- a/viewer/src/services/navigation.ts +++ b/viewer/src/services/navigation.ts @@ -40,8 +40,8 @@ export default class Navigation { } // Checks if the type of an item matches - public static checkType(item: Gallery.Item | null, type: Gallery.ItemType): boolean { - return item?.properties.type === type ?? false; + public static checkType(item: Gallery.Item | null, type: Gallery.ItemType | null): boolean { + return item?.properties.type === type; } public static getLastDirectory(itemPath: Gallery.Item[]): Gallery.Directory { -- cgit v1.2.3