From b0c0d1550543d373c527dabb89e60876cef93e81 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 4 Dec 2024 10:55:29 +0100 Subject: [PATCH] fix stat filter url write --- web/frontend/src/generic/Filters.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/frontend/src/generic/Filters.svelte b/web/frontend/src/generic/Filters.svelte index 312135a..481211b 100644 --- a/web/frontend/src/generic/Filters.svelte +++ b/web/frontend/src/generic/Filters.svelte @@ -219,7 +219,7 @@ opts.push(`projectMatch=${filters.projectMatch}`); if (filters.stats.length != 0) for (let stat of filters.stats) { - opts.push(`stat=${stat?.field ? stat.field : stat.metricName}-${stat?.from ? stat.from : stat.range.from}-${stat?.to ? stat.to : stat.range.to}`); + opts.push(`stat=${stat.field}-${stat.from}-${stat.to}`); } if (opts.length == 0 && window.location.search.length <= 1) return; @@ -390,7 +390,7 @@ {#if filters.stats.length > 0} (isStatsOpen = true)}> {filters.stats - .map((stat) => `${stat?.text ? stat.text : stat.field}: ${stat?.from ? stat.from : stat.range.from} - ${stat?.to ? stat.to : stat.range.to}`) + .map((stat) => `${stat.field}: ${stat.from} - ${stat.to}`) .join(", ")} {/if}