From b0a806ae7adbf42931ec85378146f243e04ba8f6 Mon Sep 17 00:00:00 2001 From: shevijacobson Date: Thu, 31 Oct 2024 09:37:08 +0200 Subject: [PATCH] Implement error notification when server fails to return data Signed-off-by: shevijacobson --- .../applications/applications-table/applications-table.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/app/pages/applications/applications-table/applications-table.tsx b/client/src/app/pages/applications/applications-table/applications-table.tsx index cf32e536c..b856d2301 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -233,7 +233,12 @@ export const ApplicationsTable: React.FC = () => { setIsDownloadModalOpen(false); } catch (error) { + setIsDownloadModalOpen(false); console.error("Error fetching tasks:", error); + pushNotification({ + title: "download failed", + variant: "danger", + }); } };