From 009361a4c36fb0254714028b452a20cd3b6f2e80 Mon Sep 17 00:00:00 2001 From: SSushmitha8 Date: Wed, 6 Aug 2025 11:12:02 -0700 Subject: [PATCH] Fix download option in file preview --- .../ListBuckets/Objects/Preview/PreviewFileContent.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web-app/src/screens/Console/Buckets/ListBuckets/Objects/Preview/PreviewFileContent.tsx b/web-app/src/screens/Console/Buckets/ListBuckets/Objects/Preview/PreviewFileContent.tsx index 44a0051300..c6c363ebbd 100644 --- a/web-app/src/screens/Console/Buckets/ListBuckets/Objects/Preview/PreviewFileContent.tsx +++ b/web-app/src/screens/Console/Buckets/ListBuckets/Objects/Preview/PreviewFileContent.tsx @@ -180,9 +180,9 @@ const PreviewFile = ({ path={path} onLoad={iframeLoaded} loading={loading} - downloadFile={() => - downloadObject(dispatch, bucketName, path, actualInfo) - } + downloadFile={() => { + downloadObject(dispatch, bucketName, objectName, actualInfo); + }} /> )}