Skip to content

Commit

Permalink
bugfix - inactive patient search query
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Sep 10, 2024
1 parent 55e152c commit a597cad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions patientsearch/src/js/components/patientList/FilterRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export default forwardRef((props, ref) => {
e.stopPropagation();
}
if (pressedKey === "enter") {
if (!hasCompleteFilters()) return;
handleSearch(getFilterData());
return;
}
Expand Down
2 changes: 1 addition & 1 deletion patientsearch/src/js/helpers/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,6 @@ export function getInactiveEntriesFromPatientBundle(bundle) {
if (typeof item.active === "undefined") {
return true;
}
return String(item.active).toLowerCase() === "true";
return String(item.active).toLowerCase() !== "true";
});
}

0 comments on commit a597cad

Please sign in to comment.