Skip to content

Commit

Permalink
Merge pull request #361 from ymaheshwari1/fix/facility-search-when-mi…
Browse files Browse the repository at this point in the history
…ssing-name

Fixed: facility search not working when any of the facility has missing name
  • Loading branch information
ymaheshwari1 authored Feb 3, 2025
2 parents ff5f02c + f0a3bab commit 34dce74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DxpFacilitySwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ const findFacility = () => {
const searchedString = queryString.value.trim().toLowerCase();
if(searchedString) {
filteredFacilities.value = facilities.value.filter((facility: any) =>
facility.facilityName.toLowerCase().includes(searchedString) ||
facility.facilityId.toLowerCase().includes(searchedString)
facility.facilityName?.toLowerCase().includes(searchedString) ||
facility.facilityId?.toLowerCase().includes(searchedString)
);
} else {
filteredFacilities.value = facilities.value;
Expand Down

0 comments on commit 34dce74

Please sign in to comment.