Skip to content

Commit

Permalink
fix stat filter url write
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Dec 4, 2024
1 parent 1e43654 commit b0c0d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/frontend/src/generic/Filters.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -390,7 +390,7 @@
{#if filters.stats.length > 0}
<Info icon="bar-chart" on:click={() => (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(", ")}
</Info>
{/if}
Expand Down

0 comments on commit b0c0d15

Please sign in to comment.