Skip to content

Commit

Permalink
Fixed issue with displayed selections not updating appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed May 8, 2024
1 parent 14106d0 commit 1036aa2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/components/mapbox/map-feature-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ export default class MapboxMapFeatureRenderer extends Component {
parseInt(this.router.currentRoute.params.lot, 10)
) {
this.setSelectedFeature(this.model);
} else if (this.router.currentRoute.params.comparisonboro !== '0') {
} else if (
this.router.currentRoute.params.comparisonboro !== '0' &&
this.router.currentRoute.name === 'map-feature.lot-comparison'
) {
this.setComparisonSelectedFeature(this.model);
} else {
this.setSelectedFeature(this.model);
this.setComparisonSelectedFeature(null);
}

if (this.shouldFitBounds) {
Expand Down
1 change: 1 addition & 0 deletions app/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default Route.extend({
const { mainMap } = this;
mainMap.setProperties({
selected: null,
comparisonSelected: null,
shouldFitBounds: false,
});

Expand Down

0 comments on commit 1036aa2

Please sign in to comment.