Skip to content

Commit

Permalink
fix audits table npe
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Dec 30, 2024
1 parent 71beebc commit 34ecf44
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions www/src/components/audits/LoginAudits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,23 @@ const columns = [
id: 'repo',
cell: (login: any) => (
<Flex gap="xsmall">
<IconFrame
size="small"
icon={
<img
src={
login.getValue().repository?.darkIcon ||
login.getValue().repository?.icon
}
width="24px"
height="24px"
/>
}
/>
{login.getValue().repository.name}
{(login.getValue().repository?.darkIcon ||
login.getValue().repository?.icon) && (
<IconFrame
size="small"
icon={
<img
src={
login.getValue().repository?.darkIcon ||
login.getValue().repository?.icon
}
width="24px"
height="24px"
/>
}
/>
)}
{login.getValue().repository?.name}
</Flex>
),
header: 'Repository',
Expand Down

0 comments on commit 34ecf44

Please sign in to comment.