Skip to content

Commit

Permalink
facilityId removed
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekTa-egov committed Jan 8, 2025
1 parent da7f973 commit c48d451
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const InboxFilterWrapper = (props) => {
const {microplanId,...rest} = Digit.Hooks.useQueryParams()
const tenantId = Digit.ULBService.getCurrentTenantId();
const [filterValues, setFilterValues] = useState(
{ status: null, onRoadCondition: null, terrain: null, securityQ1: null, securityQ2: null,facilityID:null }
{ status: null, onRoadCondition: null, terrain: null, securityQ1: null, securityQ2: null,facilityName:null }
);

// Default selected option
Expand Down Expand Up @@ -107,10 +107,10 @@ const InboxFilterWrapper = (props) => {
select: (data) => {
if (!data?.PlanFacility || !Array.isArray(data.PlanFacility)) return [];

// Extract facilityName and facilityId for each object
// Extract facilityName for each object
const facilityOptions = data.PlanFacility.map((facility) => ({
code: facility.facilityName,
id: facility.facilityId
name: facility.facilityName
}));

return facilityOptions;
Expand Down

0 comments on commit c48d451

Please sign in to comment.