Skip to content

Commit

Permalink
fix: add swrs_facility_id value to unnamed facilities in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jun 29, 2020
1 parent f87c79d commit 270ee51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/containers/Facilities/Facility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const FacilityComponent = (props) => {

let {facilityName} = facility;

if (!facility.facilityName) facilityName = 'UNDEFINED FACILITY NAME';
if (!facility.facilityName)
facilityName = `empty name (swrs facility id = ${facility.swrsFacilityId})`;
if (!facilityName.toLowerCase().includes(props.facilityInput.toLowerCase()))
return null;

Expand Down Expand Up @@ -43,6 +44,7 @@ export default createFragmentContainer(FacilityComponent, {
facilityType
bcghgid
swrsReportId
swrsFacilityId
}
`
});

0 comments on commit 270ee51

Please sign in to comment.