From 0a8bd7dc661e4a7033aaedf13f923161c6bfc7e2 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 4 Sep 2024 14:07:32 -0500 Subject: [PATCH] fix(web): correct color for active tree item (#12318) * fix(web): correct color for active tree item * remove white space --- web/src/lib/components/shared-components/tree/tree.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/components/shared-components/tree/tree.svelte b/web/src/lib/components/shared-components/tree/tree.svelte index 5bc7a715ac..5c4b367a54 100644 --- a/web/src/lib/components/shared-components/tree/tree.svelte +++ b/web/src/lib/components/shared-components/tree/tree.svelte @@ -13,7 +13,7 @@ export let getColor: (path: string) => string | undefined; $: path = normalizeTreePath(`${parent}/${value}`); - $: isActive = active.startsWith(path); + $: isActive = active === path || active.startsWith(`${path}/`); $: isOpen = isActive; $: isTarget = active === path; $: color = getColor(path);