Fix place route being active after closing place details
Depending on where a place was opened from, it now goes back to the index or (active) search route
This commit is contained in:
@@ -33,7 +33,9 @@ export default class SearchController extends Controller {
|
||||
|
||||
// 2. If it's a back navigation to the exact same search, resolve instantly with no animation
|
||||
if (isSameSearch && hasResults) {
|
||||
this.mapUi.showSidebar();
|
||||
if (this.mapUi.isSidebarVisible) {
|
||||
this.mapUi.showSidebar();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user