fix: invalid type object save in signers field

This commit is contained in:
prafull-opensignlabs
2024-11-04 17:26:36 +05:30
committed by GitHub
parent 0bab033673
commit b8415c8995
+7 -6
View File
@@ -920,15 +920,16 @@ function PlaceHolderSign() {
// `autosavedetails` is used to save doc details after every 2 sec when changes are happern in placeholder like drag-drop widgets, remove signers
const autosavedetails = async () => {
const signers = signersdata?.filter(
(x) =>
x?.Role !== "prefill" &&
x.objectId && {
const signers = signersdata?.reduce((acc, x) => {
if (x.objectId) {
acc.push({
__type: "Pointer",
className: "contracts_Contactbook",
objectId: x.objectId
}
);
});
}
return acc;
}, []);
try {
const docCls = new Parse.Object("contracts_Document");
docCls.id = documentId;