From a9c0edc92e360ba51afcb11c5b07f0256d8973c4 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 21 Aug 2026 00:12:14 +0300 Subject: [PATCH] restore clearTimeline --- src/stores/timelines.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/stores/timelines.js b/src/stores/timelines.js index df1c41a69..34fc57f79 100644 --- a/src/stores/timelines.js +++ b/src/stores/timelines.js @@ -149,6 +149,16 @@ export const useTimelinesStore = defineStore('timelines', { this[timelineName] = emptyTl(timelineName) }, + clearTimeline(timelineName) { + const timeline = this[timelineName] + + timeline.order = [] + timeline.statusIds = new Set() + timeline.visibleStatusIds = new Set() + timeline.newStatusCount = 0 + timeline.maxId = '' + timeline.minId = '' + }, activatePersistents() { TIMELINES.forEach((name) => { if (this[name].persistent) {