Skip to content

Commit

Permalink
fix: hopefully fixes bug in category builder for 'constructor' word (…
Browse files Browse the repository at this point in the history
…and other prototype stuff) (#565)
  • Loading branch information
ErikBjare authored May 8, 2024
1 parent cb83d12 commit 9d58554
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/settings/CategoryBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ export default {
if (word.length <= 2 || this.ignored_words.includes(word)) {
continue;
}
if (word in words) {
words[word].duration += event.duration;
words[word].events.push(event);
if (words.has(word)) {
words.get(word).duration += event.duration;
words.get(word).events.push(event);
} else {
words[word] = {
words.set(word, {
word: word,
duration: event.duration,
events: [event],
};
});
}
}
}
Expand Down

1 comment on commit 9d58554

@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.