Skip to content

Commit

Permalink
Cancelling removes the correct selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dhochbaum-dcp committed Mar 15, 2024
1 parent a08b1a8 commit ff2d211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/layer-record-views/tax-lot.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ const landuseLookup = {
export default class TaxLotRecordComponent extends LayerRecordComponent {
@service router;

@service mainMap;

@action
linkToLotComparison() {
this.router.transitionTo(
Expand All @@ -330,6 +332,7 @@ export default class TaxLotRecordComponent extends LayerRecordComponent {

@action
removeLotFromComparison(otherModelId) {
this.set('mainMap.comparisonSelected', null);
const { boro, block, lot } = bblDemux(otherModelId);
this.router.transitionTo(
'map-feature.lot-comparison',
Expand Down

0 comments on commit ff2d211

Please sign in to comment.