From e8c79e298f0f16448e2fb6a815e0cc2b94c97f48 Mon Sep 17 00:00:00 2001 From: Johannes Baum <4518664+Annoraaq@users.noreply.github.com> Date: Tue, 14 May 2024 13:47:58 +0000 Subject: [PATCH] Remove old style indexes --- .../src/components/Explore/TimelinePicker.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/timesketch/frontend-ng/src/components/Explore/TimelinePicker.vue b/timesketch/frontend-ng/src/components/Explore/TimelinePicker.vue index 19500fce98..6474fa4ee6 100644 --- a/timesketch/frontend-ng/src/components/Explore/TimelinePicker.vue +++ b/timesketch/frontend-ng/src/components/Explore/TimelinePicker.vue @@ -92,18 +92,13 @@ export default { return this.$store.state.enabledTimelines.includes(timeline.id) }, getCount(timeline) { - let count = 0 if (this.countPerTimeline) { - count = this.countPerTimeline[timeline.id] + const count = this.countPerTimeline[timeline.id] if (typeof count === 'number') { return count } } - // Support for old style indices - if (!count && this.countPerIndex) { - count = this.countPerIndex[timeline.searchindex.index_name] - } - return count + return 0 }, remove(timeline) { this.isLoading = true