Signalen / frontend

Frontend for Signalen, an application that helps cities manage and prioritize nuisance reports.
https://signalen.org
Mozilla Public License 2.0
10 stars 4 forks source link

Signal Detail Map doesn't update after location edit #85

Closed boris-arkenaar closed 3 years ago

boris-arkenaar commented 3 years ago

Describe the bug On the detail page of an incident, a small thumbnail map is shown of the location. You can edit the location, but after saving the now location the map doesn't get updated. When you refresh the page the map correctly shows the last saved location again.

To Reproduce Steps to reproduce the behavior:

  1. Go to the list view of incidents in the back office.
  2. Click on an incident.
  3. Look at the map thumbnail
  4. Click on the pencil icon next to the address.
  5. Select a new location on the map.
  6. Click on 'Locatie opslaan'.
  7. Notice the address being updated.
  8. Notice the map thumbnail showing the old location.
  9. Refresh the page.
  10. Notice the map thumbnail showing the new location.

Expected behavior The map thumbnail should update to the new location directly after saving the new location, along with the updated address shown.

Additional context It has been reported that the does update after consecutive updates, showing the location before the last save. Effectively being one step behind. I have not been able to reproduce this behavior, however. For me, the map didn't update, no matter how many times I change the location.