u
This commit is contained in:
@@ -457,8 +457,14 @@ export async function buildManifestBody(
|
||||
lines: buildLines(form.lines, { requireAtLeastOne }),
|
||||
};
|
||||
}
|
||||
if (form.partyId != null) body[partyField] = form.partyId;
|
||||
else if (!requireAtLeastOne) body[partyField] = null;
|
||||
if (form.partyId != null && form.partyId !== '') {
|
||||
const pid = Number(form.partyId);
|
||||
if (!Number.isNaN(pid)) {
|
||||
body[partyField] = pid;
|
||||
}
|
||||
} else if (!requireAtLeastOne) {
|
||||
body[partyField] = null;
|
||||
}
|
||||
|
||||
// Add files if attachments exist
|
||||
if (form.attachments && form.attachments.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user