Skip to content

Commit

Permalink
Merge pull request #132 from OpenLMIS-Angola/OAM-187-hide-ward-select…
Browse files Browse the repository at this point in the history
…-in-issue

OAM-187: fixed issue with showing ward input in all sm views
  • Loading branch information
DominikNoga authored Jun 18, 2024
2 parents c4daecf + c31daf8 commit 5fe4af1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1047,9 +1047,10 @@
return false;
});

vm.displayWardSelect = vm.homeFacilityWards.length > 0;
vm.displayWardSelect = vm.homeFacilityWards.length > 0 &&
adjustmentType.state === ADJUSTMENT_TYPE.RECEIVE.state;

if (vm.displayWardSelect) {
if (vm.homeFacilityWards.length > 0) {
var wardNames = vm.homeFacilityWards.map(function(ward) {
return ward.name;
});
Expand Down

0 comments on commit 5fe4af1

Please sign in to comment.