Skip to content

Commit

Permalink
Fix email (#4642)
Browse files Browse the repository at this point in the history
* Fix email

* Fix

* Fix

* Fix package.json

* map from property_view_id not id

---------

Co-authored-by: Katherine Fleming <2205659+kflemin@users.noreply.github.com>
Co-authored-by: Nicholas Long <1907354+nllong@users.noreply.github.com>
Co-authored-by: Nicholas Long <nicholas.long@nrel.gov>
  • Loading branch information
4 people committed May 10, 2024
1 parent 178d619 commit 4100268
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions seed/static/seed/js/controllers/inventory_list_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,12 @@ angular.module('BE.seed.controller.inventory_list', []).controller('inventory_li
templateUrl: `${urls.static_url}seed/partials/postoffice_modal.html`,
controller: 'postoffice_modal_controller',
resolve: {
property_states: () => ($scope.inventory_type === 'properties' ? selectedViewIds : []),
taxlot_states: () => ($scope.inventory_type === 'taxlots' ? selectedViewIds : []),
property_states: () => ($scope.inventory_type === 'properties' ?
$scope.data.filter((d) => selectedViewIds.includes(d.property_view_id)).map((d) => d.property_state_id) :
[]),
taxlot_states: () => ($scope.inventory_type === 'taxlots' ?
$scope.data.filter((d) => selectedViewIds.includes(d.property_view_id)).map((d) => d.taxlot_state_id) :
[]),
inventory_type: () => $scope.inventory_type
}
});
Expand Down

0 comments on commit 4100268

Please sign in to comment.