Skip to content

Commit 9d58554

Browse files
authored
fix: hopefully fixes bug in category builder for 'constructor' word (and other prototype stuff) (#565)
1 parent cb83d12 commit 9d58554

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/views/settings/CategoryBuilder.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,15 @@ export default {
227227
if (word.length <= 2 || this.ignored_words.includes(word)) {
228228
continue;
229229
}
230-
if (word in words) {
231-
words[word].duration += event.duration;
232-
words[word].events.push(event);
230+
if (words.has(word)) {
231+
words.get(word).duration += event.duration;
232+
words.get(word).events.push(event);
233233
} else {
234-
words[word] = {
234+
words.set(word, {
235235
word: word,
236236
duration: event.duration,
237237
events: [event],
238-
};
238+
});
239239
}
240240
}
241241
}

0 commit comments

Comments
 (0)