Merged in release/2022-08-26 (pull request #568)

IO-1984 Resolve error on email audit tab.

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2022-08-29 15:13:57 +00:00

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]}>