From daafd1968714891e416f0c7e7d7c88d3b96b7705 Mon Sep 17 00:00:00 2001 From: Caitlin Barnard Date: Thu, 7 Nov 2024 15:13:24 +0000 Subject: [PATCH] Add todo for FFT-100 for testing paste functionality with payroll rows forecast --- front_end/src/Components/TableCell/index.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/front_end/src/Components/TableCell/index.jsx b/front_end/src/Components/TableCell/index.jsx index 892a78394..e42e9e4ce 100644 --- a/front_end/src/Components/TableCell/index.jsx +++ b/front_end/src/Components/TableCell/index.jsx @@ -160,11 +160,12 @@ const TableCell = ({rowIndex, cellId, cellKey, sheetUpdating, payrollData}) => { payload.append("amount", intAmount) postData( - `/forecast/update-forecast/${window.cost_centre}/${window.financial_year}`, - payload + `/forecast/update-forecast/${window.cost_centre}/${window.financial_year}`, + payload ).then((response) => { - setIsUpdating(false) - if (response.status === 200) { + setIsUpdating(false) + if (response.status === 200) { + // TODO (FFT-100): Test paste to excel with locked payroll forecast rows let rows = processForecastData(response.data, payrollData, isPayrollEnabled) dispatch({ type: SET_CELLS,