Skip to content

Commit a2dfcce

Browse files
authored
Fix download option in file preview (#3572)
1 parent 3d6c4cb commit a2dfcce

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)