From 8319e8af3f26241e8e3f2554719bed32b402a286 Mon Sep 17 00:00:00 2001 From: UcDust Date: Mon, 25 Nov 2024 11:08:04 -0800 Subject: [PATCH] bugfix for #268 --- .../public/elements/pages/record/viewer/app-media-viewer-nav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/fin/ucd-lib-client/client/public/elements/pages/record/viewer/app-media-viewer-nav.js b/services/fin/ucd-lib-client/client/public/elements/pages/record/viewer/app-media-viewer-nav.js index d3eff04..1489c59 100644 --- a/services/fin/ucd-lib-client/client/public/elements/pages/record/viewer/app-media-viewer-nav.js +++ b/services/fin/ucd-lib-client/client/public/elements/pages/record/viewer/app-media-viewer-nav.js @@ -382,7 +382,7 @@ export default class AppMediaViewerNav extends Mixin(LitElement).with( // } let thumbnail = { - id: node["@id"]+(clientMediaPage.page === undefined ? '' : ':'+(clientMediaPage.page-1)), + id: node["@id"]+(!clientMediaPage.page || clientMediaPage.page === undefined ? '' : ':'+(clientMediaPage.page-1)), icon: iconType, position: clientMediaPage.page, selected: (clientMediaPage.page-1) === selectedMediaPage,