Notification on error
This commit is contained in:
parent
56ed9a477f
commit
cd9d99c1df
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue