Skip to content

Commit

Permalink
DBC22-313: made search text case-insensitive and included captions
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-oxd authored and fatbird committed Feb 12, 2024
1 parent 2589a75 commit 51e0e15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/frontend/src/pages/CamerasListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ export default function CamerasListPage() {

useEffect(() => {
const filteredCams = !searchText ? processedCameras :
processedCameras.filter((pc) => pc.name.toLowerCase().includes(searchText));
processedCameras.filter(
(pc) => pc.name.toLowerCase().includes(searchText.toLowerCase()) ||
pc.caption.toLowerCase().includes(searchText.toLowerCase())
);

setDisplayedCameras(filteredCams);

Expand Down

0 comments on commit 51e0e15

Please sign in to comment.