From 866d6234904ccabcb694a3564728c0223fd56fe4 Mon Sep 17 00:00:00 2001 From: Rohit Date: Fri, 30 May 2025 18:28:24 +0530 Subject: [PATCH] fix: download csv and json list data --- src/components/run/RunContent.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/run/RunContent.tsx b/src/components/run/RunContent.tsx index faa425d3..5565f451 100644 --- a/src/components/run/RunContent.tsx +++ b/src/components/run/RunContent.tsx @@ -248,7 +248,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe const renderDataTable = ( data: any[], - columns: string[], + columns: any[], title: string, csvFilename: string, jsonFilename: string, @@ -262,6 +262,9 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe if (!currentData || currentData.length === 0) return null; + const downloadData = isPaginatedList ? currentData : data; + const downloadColumns = isPaginatedList ? currentColumns : columns; + return (