techmatters / terraso-web-client

A React project that powers the frontend of Terraso platform.
https://app.terraso.org/
GNU Affero General Public License v3.0
11 stars 3 forks source link

When the same data layer is used in consecutive chapters, scrolling up causes data layer to disappear #2371

Open DerekCaelin opened 2 months ago

DerekCaelin commented 2 months ago

References

Sample story map: https://app.staging.terraso.net/tools/story-maps/856b720b/data-layers/edit (shared with Jose) Published story map on production: https://app.terraso.org/tools/story-maps/d500d536/unraveling-the-web-climate-urbanization-and-the-dengue-crisis-in-bangalore

Steps to reproduce

  1. Create story map
  2. Add chapter and add a map layer
  3. Add chapter and add the same map layer
  4. Publish the map
  5. Scroll to the bottom of the story map
  6. Scroll up

Expected Behavior

Map layers are visible

Actual behavior

Map layers are invisible

Additional context

Issue happens only on repeat map layers. Using different map layers means the issue will not occur.

DerekCaelin commented 1 month ago

I added 3 chapters with the same map layer to this story map and can successfully scroll up and down without content disappearing. The fix seems to work. @josebui thank you and please push to prod.