Notification on error

This commit is contained in:
Adria Navarro 2024-03-25 17:42:12 +01:00
parent 56ed9a477f
commit cd9d99c1df
1 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,8 @@ const downloadFileHandler = async (action, context) => {
const response = await fetch(url)
if (!response.ok) {
throw "TODO"
notificationStore.actions.error("File cannot be downloaded")
return
}
const objectUrl = URL.createObjectURL(await response.blob())