Skip to content

Commit

Permalink
use filterByHasFacilities prop
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jul 29, 2024
1 parent 66d9a9d commit 1b7a759
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,11 @@
);
// If we're filtering a particular facility
if (Object.keys(facilityFilter).length > 0) {
if (Object.keys(facilityFilter).length > 0 || props.filterByHasFacilities) {
apiParams.subset_of_users_device = false;
deviceFilters.push(useDeviceFacilityFilter(facilityFilter));
}
deviceFilters.push(useDeviceFacilityFilter(facilityFilter));
if (props.filterLODAvailable) {
apiParams.subset_of_users_device = false;
deviceFilters.push(useDeviceMinimumVersionFilter(0, 15, 0));
Expand Down

0 comments on commit 1b7a759

Please sign in to comment.