Skip to content

Commit 7120c33

Browse files
Fix download option in file preview (minio#3572) (#21)
Co-authored-by: SSushmitha8 <[email protected]>
1 parent 573b07c commit 7120c33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web-app/src/screens/Console/Buckets/ListBuckets/Objects/Preview/PreviewFileContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ const PreviewFile = ({
180180
path={path}
181181
onLoad={iframeLoaded}
182182
loading={loading}
183-
downloadFile={() =>
184-
downloadObject(dispatch, bucketName, path, actualInfo)
185-
}
183+
downloadFile={() => {
184+
downloadObject(dispatch, bucketName, objectName, actualInfo);
185+
}}
186186
/>
187187
</Fragment>
188188
)}

0 commit comments

Comments
 (0)