Skip to content

Commit

Permalink
fix(maps): do not break the back button by adding extra history entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Dec 19, 2024
1 parent 605321c commit 1e0cb58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/maps/MapsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function MapsPage({
navigate({
to: "/maps",
search: { sceneId: firstSceneId, q: q },
replace: true, // Do not add useless history entries not to break the back button
});
}
}, [searchResult, sceneId, q, navigate]);
Expand Down

0 comments on commit 1e0cb58

Please sign in to comment.