diff --git a/src/components/purchase/ManagePurchase.jsx b/src/components/purchase/ManagePurchase.jsx index c28f536c..262238bf 100644 --- a/src/components/purchase/ManagePurchase.jsx +++ b/src/components/purchase/ManagePurchase.jsx @@ -72,7 +72,7 @@ const ManagePurchase = ({ onClose, purchaseId }) => { fileName: doc.fileName, base64Data: null, contentType: doc.contentType, - documentId: doc.documentId, + documentId: doc.documentId ?? null, invoiceAttachmentTypeId: doc.invoiceAttachmentType?.id ?? null, fileSize: 0, description: "", @@ -155,7 +155,7 @@ const ManagePurchase = ({ onClose, purchaseId }) => { > ) : (