Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjae-lee committed Feb 21, 2025
1 parent 8a0e05c commit 83dc7a8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/web/modules/bookings/hooks/useFacetedUniqueValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ export function useFacetedUniqueValues() {
}))
);
} else if (columnId === "userId") {
const options: FacetedValue[] = (members || [])
.map((member) => ({
label: member.name,
value: member.id,
}))
.filter((option): option is FacetedValue => Boolean(option.label));
return convertFacetedValuesToMap(options);
return convertFacetedValuesToMap(
(members || [])
.map((member) => ({
label: member.name,
value: member.id,
}))
.filter((option): option is { label: string; value: number } => Boolean(option.label))
);
}
return new Map<FacetedValue, number>();
},
Expand Down

0 comments on commit 83dc7a8

Please sign in to comment.