Skip to content

Commit

Permalink
DBC22-2592: fixed highway filter does not show non highway cameras
Browse files Browse the repository at this point in the history
DBC22-2592: fixed highway filter does not show non highway cameras
  • Loading branch information
bcgov-brwang authored and ray-oxd committed Aug 27, 2024
1 parent b075caf commit e7e049f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/Components/cameras/CameraList.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function CameraList(props) {
const checkedHighway = getCheckedHighway();
let filteredCameras = cameras;
if(checkedHighway){
filteredCameras = cameras.filter((camera) => camera.highway === checkedHighway)
filteredCameras = cameras.filter((camera) => (camera.highway === checkedHighway || camera.highway_display === checkedHighway))
}
if (!length) { camsContext.displayLength += 4; }
const shown = filteredCameras.slice(0, length ? length : camsContext.displayLength);
Expand Down

0 comments on commit e7e049f

Please sign in to comment.