From 72c3de3a8353d0c85a709f8db15422386ff20875 Mon Sep 17 00:00:00 2001 From: alaca Date: Fri, 28 Jul 2023 17:56:49 +0200 Subject: [PATCH] fix: missing formId --- .../V2/resources/components/DonationFormsRowActions.tsx | 1 + .../V2/resources/components/Migration/TransferSuccessDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DonationForms/V2/resources/components/DonationFormsRowActions.tsx b/src/DonationForms/V2/resources/components/DonationFormsRowActions.tsx index 2b9d2e9de4..aaf18f2d8c 100644 --- a/src/DonationForms/V2/resources/components/DonationFormsRowActions.tsx +++ b/src/DonationForms/V2/resources/components/DonationFormsRowActions.tsx @@ -99,6 +99,7 @@ export function DonationFormsRowActions({data, item, removeRow, addRow, setUpdat ...prev, showTransferSuccessDialog: true, formName: item?.name, + formId: id })) return await fetchAndUpdateErrors(parameters, '/transfer', id, 'POST') diff --git a/src/DonationForms/V2/resources/components/Migration/TransferSuccessDialog.tsx b/src/DonationForms/V2/resources/components/Migration/TransferSuccessDialog.tsx index 1c14a9cc97..339bff23c5 100644 --- a/src/DonationForms/V2/resources/components/Migration/TransferSuccessDialog.tsx +++ b/src/DonationForms/V2/resources/components/Migration/TransferSuccessDialog.tsx @@ -125,7 +125,7 @@ export default function TransferSuccessDialog({handleClose, formName, formId}) { 'Content-Type': 'application/json', 'X-WP-Nonce': window.GiveDonationForms.apiNonce }, - body: JSON.stringify(params) + body: JSON.stringify({...params, formId}) }).then((response) => { setState(prev => ({ ...prev,