Skip to content

Commit

Permalink
lines may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Oct 23, 2024
1 parent 1119826 commit 89ff8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cancellations/overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const Overview = ({ cancellations, lines }) => {
<Tr key={item.recordedAtTime}>
<Td className="Status">{returnRedOrGreenIcon(item)}</Td>
<Td className="#">
{lines.find((l) => l.id === item.lineRef)?.publicCode} (
{lines?.find((l) => l.id === item.lineRef)?.publicCode} (
{item.lineRef})
</Td>
<Td>
Expand Down

0 comments on commit 89ff8d6

Please sign in to comment.