hodcroftlab / covariants

Real-time updates and information about key SARS-CoV-2 variants, plus the scripts that generate this information.
https://covariants.org/
GNU Affero General Public License v3.0
317 stars 111 forks source link

fix(web): crash when accessing "mutations" pages on side bar #392

Closed ivan-aksamentov closed 4 months ago

ivan-aksamentov commented 4 months ago

This was due to the mutations counts missing for these pages. It used to be displaying a placeholder, but at some point I migrated to async data fetching and it was throwing an exception which isn't handled correctly.

I am now explicitly ignoring the error if the mutation counts json is missing for a variant - and in this case nothing is shown on the page where the mutation counts widget should be.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
covariants ✅ Ready (Inspect) Visit Preview Jul 18, 2024 0:25am