Skip to content

Commit

Permalink
Fix URL casing bug (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpgreen2 committed Sep 10, 2024
1 parent 002f0f8 commit 64f2347
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export function useDashboardUrlSync(ctx: StateManagers, schema: V1StructType) {
let lastKnownProto = get(dashboardUrlState)?.defaultProto;
return dashboardUrlState.subscribe((state) => {
const metricViewName = get(ctx.metricsViewName);
if (state.urlName !== metricViewName) {
return;
}

// Avoid a race condition when switching between metrics views
if (state?.urlName?.toLowerCase() !== metricViewName.toLowerCase()) return;

if (!state.isReady || !state.proto) return;

Expand Down

2 comments on commit 64f2347

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://ui.rilldata.com as production
🚀 Deployed on https://66e190953795d70b847671ca--rill-ui.netlify.app

Please sign in to comment.