From 88d25e97e92d506acb9cef9c96f086e39a19c7e1 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Thu, 7 Nov 2024 01:33:38 +0800 Subject: [PATCH] misc: added undefined handling for actor --- .../src/views/Org/AuditLogsPage/components/LogsTableRow.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/views/Org/AuditLogsPage/components/LogsTableRow.tsx b/frontend/src/views/Org/AuditLogsPage/components/LogsTableRow.tsx index b7053b80a0..4da98613e0 100644 --- a/frontend/src/views/Org/AuditLogsPage/components/LogsTableRow.tsx +++ b/frontend/src/views/Org/AuditLogsPage/components/LogsTableRow.tsx @@ -11,6 +11,10 @@ type Props = { export const LogsTableRow = ({ auditLog, isOrgAuditLogs, showActorColumn }: Props) => { const renderActor = (actor: Actor) => { + if (!actor) { + return ; + } + switch (actor.type) { case ActorType.USER: return (