From 90db93f223765858e37a74ca8a7d7ea0adab5dff Mon Sep 17 00:00:00 2001 From: Alexander Kaserbacher Date: Sat, 15 May 2021 13:08:31 +0200 Subject: [PATCH] do not post to errorApi in case getLastBuild or getFolder API call threw an error we do not want to show an error popup for the user here but instead move the error to the card Signed-off-by: Alexander Kaserbacher --- plugins/jenkins/src/components/useBuilds.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/jenkins/src/components/useBuilds.ts b/plugins/jenkins/src/components/useBuilds.ts index 5a6f8b9f08..e818d3f5a6 100644 --- a/plugins/jenkins/src/components/useBuilds.ts +++ b/plugins/jenkins/src/components/useBuilds.ts @@ -48,7 +48,6 @@ export function useBuilds(projectName: string, branch?: string) { return build || []; } catch (e) { - errorApi.post(e); throw e; } }, [api, errorApi, projectName, branch]);