fix(ai-enrich): Fix 400 Bad Request on proposal approve/reject
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Add empty JSON body to fetch POST requests - Flask cannot parse
Content-Type: application/json with no body.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-06 17:58:29 +01:00
parent 6d436bb0ae
commit b2c73d027d

View File

@ -3834,7 +3834,8 @@ function showProposalApprovalButtons(companyId, proposalId, proposedData) {
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': '{{ csrf_token() }}'
}
},
body: JSON.stringify({})
});
const data = await response.json();
@ -3871,7 +3872,8 @@ function showProposalApprovalButtons(companyId, proposalId, proposedData) {
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': '{{ csrf_token() }}'
}
},
body: JSON.stringify({})
});
const data = await response.json();