Skip to content

Commit

Permalink
fix: correctly convert words from map to array (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
BelKed committed May 9, 2024
1 parent 8245c37 commit 5993db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/settings/CategoryBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export default {
computed: {
...mapState(useCategoryStore, ['allCategoriesSelect']),
words_by_duration: function () {
const words: { [key: string]: { word: string; duration: number } } = this.words;
return Object.values(words)
const words: { word: string; duration: number }[] = [...this.words.values()];
return words
.sort((a, b) => b.duration - a.duration)
.filter(word => word.duration > 60)
.filter(word => !this.ignored_words.includes(word.word));
Expand Down

1 comment on commit 5993db3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.