From 8cd789585f1bd1fa3ab13220f6f4260569862aab Mon Sep 17 00:00:00 2001 From: David Huang Date: Mon, 29 Apr 2024 11:38:51 -0500 Subject: [PATCH] debug/add-null-support-so-log-page-doesnt-crash-when-event-not-found Make sure log page still displays when event not found(happens when we refresh db and insert fake data --- components/Logs/LogsDashboard.tsx | 2 +- components/Logs/LogsTable.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Logs/LogsDashboard.tsx b/components/Logs/LogsDashboard.tsx index 72c4964..506e7ca 100644 --- a/components/Logs/LogsDashboard.tsx +++ b/components/Logs/LogsDashboard.tsx @@ -24,7 +24,7 @@ const processLogDataForTable = ( return logData.map(log => { return { ...log, - eventName: log.event.name, + eventName: log.event?.name, }; }); }; diff --git a/components/Logs/LogsTable.tsx b/components/Logs/LogsTable.tsx index 2f906d9..1627932 100644 --- a/components/Logs/LogsTable.tsx +++ b/components/Logs/LogsTable.tsx @@ -19,7 +19,7 @@ export default function LogsTable({ logData }: { logData: LogTableData[] }) { key: 'seeEvent', render: (event: any) => { return ( - + {/* light blue color text */}
See event