Merge pull request #746 from OpenSignLabs/feat_resendmail

fix: Cannot read properties of undefined (reading 'find') in resend mail & resend mail not available dashboard report
This commit is contained in:
Amol
2024-05-17 10:49:06 +05:30
committed by GitHub
3 changed files with 12 additions and 1 deletions
+8
View File
@@ -231,6 +231,14 @@ export default function reportJson(id) {
btnIcon: "fa-solid fa-ellipsis-vertical fa-lg",
action: "option",
subaction: [
{
btnId: "1631",
btnLabel: "Resend",
hoverLabel: "Resend",
btnIcon: "fa-solid fa-envelope",
redirectUrl: "",
action: "resend"
},
{
btnId: "6788",
btnLabel: "Revoke",
@@ -580,7 +580,7 @@ const ReportTable = (props) => {
}
};
const fetchUserStatus = (user, doc) => {
const audit = doc.AuditTrail.find(
const audit = doc?.AuditTrail?.find(
(x) => x.UserPtr.objectId === user.objectId
);
return (
@@ -216,6 +216,9 @@ export default function reportJson(id, userId) {
'Signers.Name',
'Signers.Email',
'Signers.Phone',
'AuditTrail',
'AuditTrail.UserPtr',
'ExpiryDate',
],
};
// Recent signature requests report show on dashboard