From fa98972b279bfb03fec74b10215bf8fa2381e5cb Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Thu, 21 Nov 2024 10:48:23 +0530 Subject: [PATCH 1/2] fix: cannot read undefined objectId in reports --- apps/OpenSign/src/primitives/GetReportDisplay.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index ecc4164ab..c4ac58d77 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -1268,9 +1268,10 @@ const ReportTable = (props) => { }; // `formatStatusRow` is used to format status row const formatStatusRow = (item) => { + console.log("item?.AuditTrail ", item?.AuditTrail); const signers = item?.Placeholders?.map((x, i) => { const matchSigner = item?.AuditTrail?.find( - (audit) => audit.UserPtr.objectId === x.signerObjId + (audit) => audit?.UserPtr?.objectId === x.signerObjId ); if (matchSigner) { return { From 97f5d093064a6c874042b10368f70019c6b3f9fa Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Thu, 21 Nov 2024 10:57:36 +0530 Subject: [PATCH 2/2] refactor: remove console log --- apps/OpenSign/src/primitives/GetReportDisplay.js | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index c4ac58d77..b75d0ddf3 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -1268,7 +1268,6 @@ const ReportTable = (props) => { }; // `formatStatusRow` is used to format status row const formatStatusRow = (item) => { - console.log("item?.AuditTrail ", item?.AuditTrail); const signers = item?.Placeholders?.map((x, i) => { const matchSigner = item?.AuditTrail?.find( (audit) => audit?.UserPtr?.objectId === x.signerObjId