Skip to content

Commit 348f781

Browse files
fix: Cannot read properties of undefined (reading 'find') in resend mail & resend mail not available dashboard report
1 parent 4da3073 commit 348f781

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

apps/OpenSign/src/json/ReportJson.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,14 @@ export default function reportJson(id) {
231231
btnIcon: "fa-solid fa-ellipsis-vertical fa-lg",
232232
action: "option",
233233
subaction: [
234+
{
235+
btnId: "1631",
236+
btnLabel: "Resend",
237+
hoverLabel: "Resend",
238+
btnIcon: "fa-solid fa-envelope",
239+
redirectUrl: "",
240+
action: "resend"
241+
},
234242
{
235243
btnId: "6788",
236244
btnLabel: "Revoke",

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ const ReportTable = (props) => {
580580
}
581581
};
582582
const fetchUserStatus = (user, doc) => {
583-
const audit = doc.AuditTrail.find(
583+
const audit = doc?.AuditTrail?.find(
584584
(x) => x.UserPtr.objectId === user.objectId
585585
);
586586
return (

apps/OpenSignServer/cloud/parsefunction/reportsJson.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ export default function reportJson(id, userId) {
216216
'Signers.Name',
217217
'Signers.Email',
218218
'Signers.Phone',
219+
'AuditTrail',
220+
'AuditTrail.UserPtr',
221+
'ExpiryDate',
219222
],
220223
};
221224
// Recent signature requests report show on dashboard

0 commit comments

Comments
 (0)