From 01d99f575134972d1d26dd4773f1f342aefec1c0 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..a618a1e6 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 = Map(); for (const event of events) { const words_in_event = event.data.title.split(/[\s\-,:()[\]/]/); for (const word of words_in_event) {