Skip to content

Commit

Permalink
Merge pull request #96 from ChangePlusPlusVandy/debug/support-for-eve…
Browse files Browse the repository at this point in the history
…nt-not-found-for-log

debug/add-null-support-so-log-page-doesnt-crash-when-event-not-found
  • Loading branch information
DavidHuang2002 committed May 6, 2024
2 parents 92a509d + 8cd7895 commit b12827f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Logs/LogsDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const processLogDataForTable = (
return logData.map(log => {
return {
...log,
eventName: log.event.name,
eventName: log.event?.name,
};
});
};
Expand Down
2 changes: 1 addition & 1 deletion components/Logs/LogsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function LogsTable({ logData }: { logData: LogTableData[] }) {
key: 'seeEvent',
render: (event: any) => {
return (
<Link href={`/event/${event._id}`}>
<Link href={`/event/${event?._id}`}>
{/* light blue color text */}
<div style={{ color: '#1890ff' }}>
<LinkOutlined /> See event
Expand Down

0 comments on commit b12827f

Please sign in to comment.