mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 23:27:35 +00:00
misc: added undefined handling for actor
This commit is contained in:
@@ -11,6 +11,10 @@ type Props = {
|
|||||||
|
|
||||||
export const LogsTableRow = ({ auditLog, isOrgAuditLogs, showActorColumn }: Props) => {
|
export const LogsTableRow = ({ auditLog, isOrgAuditLogs, showActorColumn }: Props) => {
|
||||||
const renderActor = (actor: Actor) => {
|
const renderActor = (actor: Actor) => {
|
||||||
|
if (!actor) {
|
||||||
|
return <Td />;
|
||||||
|
}
|
||||||
|
|
||||||
switch (actor.type) {
|
switch (actor.type) {
|
||||||
case ActorType.USER:
|
case ActorType.USER:
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user