Skip to content

Commit 74b0d31

Browse files
authored
fix: fixes bug in category builder when word 'constructor' exists (#564)
Fixes ActivityWatch/activitywatch#1054
1 parent 75dc005 commit 74b0d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/settings/CategoryBuilder.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default {
220220
);
221221
222222
const events = data[0];
223-
const words = {};
223+
const words = new Map<string, { word: string; duration: number; events: any[] }>();
224224
for (const event of events) {
225225
const words_in_event = event.data.title.split(/[\s\-,:()[\]/]/);
226226
for (const word of words_in_event) {

0 commit comments

Comments
 (0)