Skip to content

Conversation

@fhennig
Copy link
Contributor

@fhennig fhennig commented Dec 8, 2025

resolves #950

Summary

In #940 the field name was made configurable, but the hardcoded name used in the destructing of the object wasn't changed: https://github.com/GenSpectrum/dashboards/pull/940/files#diff-30ad9ef617a4a872e53ac66e262725a87988183be5674c0b9d412ed5822c7d06L36

The test didn't catch this, because the test also uses the same hardcoded field name (pangoLineage): https://github.com/GenSpectrum/dashboards/blob/HEAD/website/src/components/pageStateSelectors/wasap/filters/VariantExplorerFilter.browser.spec.tsx#L46-L75

The fix: Just use the proper field name to access the the value in the callback parameter. The same problem was also in the "untracked" mode.

Since this was caused by hardcoded variable names, which we have not configured, I don't think it's necessary to adapt the test or create a second case for this.

Screenshot

Screen.Recording.2025-12-08.at.20.53.02.mov

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

@vercel
Copy link

vercel bot commented Dec 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dashboards Ready Ready Preview Comment Dec 8, 2025 7:58pm

@fhennig fhennig self-assigned this Dec 8, 2025
@fhennig fhennig added the bug Something isn't working label Dec 8, 2025
@fhennig fhennig force-pushed the fix-variant-filter branch from 15c4228 to 5468b4a Compare December 8, 2025 19:57
@fhennig fhennig marked this pull request as ready for review December 8, 2025 20:01
Copy link
Contributor

@fengelniederhammer fengelniederhammer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@fhennig fhennig merged commit e75c522 into main Dec 9, 2025
10 checks passed
@fhennig fhennig deleted the fix-variant-filter branch December 9, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

W-ASAP: Variant Explorer Bug - Selected variant is reset?

3 participants