From b12a2a0490b117a8f9a634daa2b60e90d71238e1 Mon Sep 17 00:00:00 2001 From: David Inga Date: Thu, 21 Dec 2023 15:32:28 +0100 Subject: [PATCH] fixed download for scenario vs scenario --- .../analysis-visualization/analysis-table/component.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/containers/analysis-visualization/analysis-table/component.tsx b/client/src/containers/analysis-visualization/analysis-table/component.tsx index afab742a1..42b9cf6d7 100644 --- a/client/src/containers/analysis-visualization/analysis-table/component.tsx +++ b/client/src/containers/analysis-visualization/analysis-table/component.tsx @@ -207,6 +207,7 @@ const AnalysisTable = () => { const handleDownloadData = useCallback(async () => { let csv = null; + console.log(currentScenario, scenarioToCompare); // actual vs scenario if (!currentScenario && scenarioToCompare) { csv = await downloadActualVsScenarioData.mutateAsync({ @@ -217,7 +218,7 @@ const AnalysisTable = () => { // scenario vs scenario else if (currentScenario && scenarioToCompare) { csv = await downloadScenarioVsScenarioData.mutateAsync({ - ...omit(params, 'page[number]', 'page[size]'), + ...omit(params, 'page[number]', 'page[size]', 'scenarioId'), baseScenarioId: currentScenario, comparedScenarioId: scenarioToCompare, });