🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix: template list status issue on pagination
RaktimaNXGc00406e40119
diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.jsindex 8b53afd56..a20f72c55 100644--- a/apps/OpenSign/src/primitives/GetReportDisplay.js+++ b/apps/OpenSign/src/primitives/GetReportDisplay.js@@ -748,13 +748,28 @@ const ReportTable = (props) => {type: "success",message: "You have successfully made the template private."});-setSelectedPublicRole("");}+ const updateList = props.List.map((x) =>+ x.objectId === item.objectId+ ? { ...x, IsPublic: isPublic[item.objectId] }+ : x+ );+ props.setList(updateList);setActLoader({});}} catch (e) {console.log("error in createpublictemplate", e);+ setIsAlert(true);+ setAlertMsg({+ type: "danger",+ message: "Something went wrong, Please try again later!"+ });+ setTimeout(() => setIsAlert(false), 1500);+ setIsPublic((prevStates) => ({+ ...prevStates,+ [item.objectId]: !prevStates[item.objectId]+ }));}} else {setIsAlert(true);@@ -765,6 +780,7 @@ const ReportTable = (props) => {setTimeout(() => setIsAlert(false), 1500);}};+const handleViewSigners = (item) => {setIsViewShare({ [item.objectId]: true });};@@ -1327,7 +1343,7 @@ const ReportTable = (props) => {}><input- checked={isPublic[item.objectId]}+ checked={isPublic?.[item.objectId]}onChange={(e) => handlePublicChange(e, item)}type="checkbox"value=""