IO-1984 Resolve error on email audit tab.

This commit is contained in:
Patrick Fic
2022-08-29 08:13:12 -07:00
parent f5c9a7dfef
commit 5adfef6ce0

View File

@@ -85,7 +85,8 @@ export function JobAuditTrail({ currentUser, jobId }) {
dataIndex: "subject", dataIndex: "subject",
key: "subject", key: "subject",
}, },
...(currentUser?.email.includes("@imex.") && [ ...(currentUser?.email.includes("@imex.")
? [
{ {
title: t("audit.fields.contents"), title: t("audit.fields.contents"),
dataIndex: "contents", dataIndex: "contents",
@@ -106,7 +107,8 @@ export function JobAuditTrail({ currentUser, jobId }) {
</Button> </Button>
), ),
}, },
]), ]
: []),
]; ];
return ( return (
<Row gutter={[16, 16]}> <Row gutter={[16, 16]}>