From 6d10c192e074ea4ffb17031980a5681be0a604df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Tue, 7 May 2024 19:52:03 +0200 Subject: [PATCH] fix: fixes bug in category builder when word 'constructor' exists Fixes https://github.com/ActivityWatch/activitywatch/issues/1054 --- src/views/settings/CategoryBuilder.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/settings/CategoryBuilder.vue b/src/views/settings/CategoryBuilder.vue index be586aec..6181ceb9 100644 --- a/src/views/settings/CategoryBuilder.vue +++ b/src/views/settings/CategoryBuilder.vue @@ -220,7 +220,7 @@ export default { ); const events = data[0]; - const words = {}; + const words = new Map(); for (const event of events) { const words_in_event = event.data.title.split(/[\s\-,:()[\]/]/); for (const word of words_in_event) {