Skip to content

Commit

Permalink
Remove old style indexes (#3091)
Browse files Browse the repository at this point in the history
Co-authored-by: Janosch <[email protected]>
  • Loading branch information
Annoraaq and jkppr committed May 28, 2024
1 parent 8dd90eb commit b7b4d8e
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7b4d8e

Please sign in to comment.