Skip to content

Commit

Permalink
fix: Undefined user in insights data (#16365)
Browse files Browse the repository at this point in the history
* fix: Null user in insights data

* renaming
  • Loading branch information
keithwillcode authored and zomars committed Sep 4, 2024
1 parent 1769227 commit 1dd7639
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ export const TotalBookingUsersTable = ({
}[]
| undefined;
}) => {
const filteredData = data && data?.length > 0 ? data?.filter((item) => !!item.user) : [];
return (
<Table>
<TableBody>
<>
{data && data?.length > 0 ? (
data?.map((item) => (
{filteredData.length > 0 ? (
filteredData.map((item) => (
<TableRow key={item.userId}>
<TableCell className="flex flex-row">
<Avatar
Expand Down

0 comments on commit 1dd7639

Please sign in to comment.