From 85c007e9495a298a22d3bdefa5162bf61bd6ed28 Mon Sep 17 00:00:00 2001 From: Brayo <62670517+brayo-pip@users.noreply.github.com> Date: Sat, 5 Oct 2024 13:03:13 +0300 Subject: [PATCH] feat: revert to the default coloring for non-standard watchers (#613) --- src/util/color.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/color.ts b/src/util/color.ts index fc9b1ce7..44aa00a4 100644 --- a/src/util/color.ts +++ b/src/util/color.ts @@ -141,6 +141,6 @@ export function getCategoryColorFromEvent(bucket: IBucket, e: IEvent) { } else if (bucket.type?.startsWith('general.stopwatch')) { return getCategoryColorFromString(e.data.label); } else { - return getCategoryColorFromString(e.data.title); + return getColorFromString(getTitleAttr(bucket, e)); } }