From cd9d99c1df1c0b73f0e0031e7e98f5f358717bb7 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 25 Mar 2024 17:42:12 +0100 Subject: [PATCH] Notification on error --- packages/client/src/utils/buttonActions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index d76f154752..21585b62bd 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -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())