Skip to content

Commit 5993db3

Browse files
authored
fix: correctly convert words from map to array (#569)
1 parent 8245c37 commit 5993db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/settings/CategoryBuilder.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ export default {
153153
computed: {
154154
...mapState(useCategoryStore, ['allCategoriesSelect']),
155155
words_by_duration: function () {
156-
const words: { [key: string]: { word: string; duration: number } } = this.words;
157-
return Object.values(words)
156+
const words: { word: string; duration: number }[] = [...this.words.values()];
157+
return words
158158
.sort((a, b) => b.duration - a.duration)
159159
.filter(word => word.duration > 60)
160160
.filter(word => !this.ignored_words.includes(word.word));

0 commit comments

Comments
 (0)