From c9d13b4d6d412885f3606fdf284ad5ce26755668 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 27 Apr 2024 14:08:02 -0700 Subject: [PATCH] timeline: sleep before opening single-item viewer (fix #1158) Signed-off-by: Varun Patil --- src/components/Timeline.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 25728465d..a51ca085e 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -734,7 +734,7 @@ export default defineComponent({ data = await dav.getOnThisDayData(); } else if (dav.isSingleItem()) { data = await dav.getSingleItemData(); - _m.viewer.open(data[0]!.detail![0]); + setTimeout(() => _m.viewer.open(data[0]!.detail![0]), 0); } else { // Try the cache if (!noCache) {