OpenEnergyDashboard / OED

Open Energy Dashboard (OED)
Mozilla Public License 2.0
73 stars 252 forks source link

history does not load correct map #1277

Open davanmur opened 1 week ago

davanmur commented 1 week ago

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Select a meter and map.
  2. Select a new map.
  3. Click back in history.
  4. See the it will load the most recent map instead of the the one that was selected.

Expected behavior

When you go back through history, it will pull up the different maps that were used.

Additional context

This is happening because the map ID is being stored with old code under the 'map' object, instead of under the 'current' object. This is the same issues that is causing issue #1166.

davanmur commented 1 week ago

I would like to work on this issue.