diff --git a/src/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.tsx b/src/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.tsx
index c3ffcfab8..8cf0a9b3b 100644
--- a/src/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.tsx
+++ b/src/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.tsx
@@ -70,14 +70,15 @@ export function DownloadFilesButton({ files, fileSelection }: DownloadFilesButto
return (
<>
- }
- withSpacing
- onClick={onClick}
- href={getDownloadUrl(FileDownloadMode.ORIGINAL)}>
- {t('actions.downloadFiles.title')}
-
+
+ }
+ withSpacing
+ onClick={onClick}>
+ {t('actions.downloadFiles.title')}
+
+
setShowNoFilesSelectedModal(false)}
diff --git a/tests/component/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.spec.tsx b/tests/component/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.spec.tsx
index 84f0aa09f..42844cce6 100644
--- a/tests/component/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.spec.tsx
+++ b/tests/component/sections/dataset/dataset-files/files-table/file-actions/download-files/DownloadFilesButton.spec.tsx
@@ -147,11 +147,9 @@ describe('DownloadFilesButton', () => {
)
- cy.findByRole('button', { name: 'Download' }).should(
- 'have.attr',
- 'href',
- 'https://some-download-url'
- )
+ cy.findByRole('button', { name: 'Download' })
+ .parent('a')
+ .should('have.attr', 'href', 'https://some-download-url')
})
it('renders the download url for the selected files when some files are selected and there are tabular files', () => {