misc: added undefined handling for actor

This commit is contained in:
Sheen Capadngan
2024-11-07 01:33:38 +08:00
parent 4ad9fa1ad1
commit 88d25e97e9

View File

@@ -11,6 +11,10 @@ type Props = {
export const LogsTableRow = ({ auditLog, isOrgAuditLogs, showActorColumn }: Props) => {
const renderActor = (actor: Actor) => {
if (!actor) {
return <Td />;
}
switch (actor.type) {
case ActorType.USER:
return (