Skip to content

Commit

Permalink
Fix: Do not trigger location update when location hasn't changed (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Jul 31, 2024
1 parent a36e71f commit ef5bc51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ class Router extends Backbone.Router {
}

async updateLocation(currentLocation, type, id, currentModel) {
if (location._currentId === id) return;

// Handles updating the location.
location._previousModel = location._currentModel;
location._previousId = location._currentId;
Expand Down

0 comments on commit ef5bc51

Please sign in to comment.