|
@@ -7,7 +7,7 @@ export const useDownloadFile = async (file: File) => {
|
|
|
|
|
|
|
|
const downloadUrl = `api/file/download/${file.id}`
|
|
const downloadUrl = `api/file/download/${file.id}`
|
|
|
|
|
|
|
|
- const response = await apiRequestService.get(downloadUrl) as unknown as Blob
|
|
|
|
|
|
|
+ const response = (await apiRequestService.get(downloadUrl)) as unknown as Blob
|
|
|
|
|
|
|
|
if (!response || response.size === 0) {
|
|
if (!response || response.size === 0) {
|
|
|
console.error('Error: file ' + file.id + ' not found')
|
|
console.error('Error: file ' + file.id + ' not found')
|