mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
fix: invalid type object save in signers field
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user