From d828274b74399a1a9115e9ea8556a460d527422c Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 7 Sep 2022 15:40:25 -0700 Subject: [PATCH] fix: :bug: sync tab when getting last timeline --- packages/client/src/pages/timeline.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index e7faf7d39..6bda935f4 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -128,7 +128,11 @@ const rootEl = $ref(); let queue = $ref(0); const src = $computed({ - get: () => defaultStore.reactiveState.tl.value.src, + get: () => { + const lastSrc = defaultStore.reactiveState.tl.value.src; + syncSlide(timelines.indexOf(lastSrc)); + return lastSrc; + }, set: (x) => { saveSrc(x); syncSlide(timelines.indexOf(x));