nsidc / snow-today-webapp

Visualize near-real-time snow data
MIT License
5 stars 0 forks source link

Issue with sub-regions not loading #70

Open windnagelnsidc opened 8 months ago

windnagelnsidc commented 8 months ago

Using Firefox 123.0.1 (64-bit), I see a bug when loading the sub-regions. Here's an example of the steps I do that reproduce the issue:

  1. Do a fresh load of the app in integration and select Western United States from the 3 green buttons
  2. Click the "Select a Region" drop down and then select the "State / Country subdivision level 1" radio button
  3. Select a state (Idaho, for example)
  4. Click the "Region" dropdown and select Alaska. You'll see that the sub-regions fail to load and this message is displayed "Failed to load sub-regions. Please select another region! t.collectionChoices[e] is undefined"

I don't know if this is related but when I do that same steps above but for step 4 I select Canada instead, the sub-regions load but the radio button for "State / Country subdivision level 1" is still selected. Alaska doesn't have a "State / Country subdivision level 1" option so maybe that's part of the issue? Should each super region reset to "None" upon selection of a new super region?

Image

mfisher87 commented 8 months ago

@windnagelnsidc can you please click the dropdown arrow next to the error and show what is inside?

windnagelnsidc commented 8 months ago

@mfisher87 Done. I updated the attached image.

mfisher87 commented 8 months ago

Could be related to https://github.com/jotaijs/jotai-tanstack-query/issues/65 (not using a link to avoid spamming the source issue; we're not sure yet if actually related)