SemanticComputing / sampo-ui

Sampo-UI – A framework for building user interfaces for semantic portals
https://seco.cs.aalto.fi/tools/sampo-ui
MIT License
33 stars 7 forks source link

Zoom level not reset when searching in table view #54

Open henrikaskj opened 1 year ago

henrikaskj commented 1 year ago

How to reproduce:

  1. Zoom in in a map tab in server side faceted search
  2. Go to table view and submit a new search
  3. Go back to the map tap. It will still be zoomed in, and you won't see the new results outside the map bounds.

The zoom level will be reset if you search while the map tab is selected. When you are in table view, "action"/"reason" in fetchResults is undefined, preventing the zoom level from resetting: https://github.com/SemanticComputing/sampo-ui/blob/f407d147257e8781c86b1c04c93253cab8c09349/src/client/reducers/general/helpers.js#L9