From aea6e50df95a566906306efe2e0642f0bcbcdec2 Mon Sep 17 00:00:00 2001 From: Arman Date: Mon, 21 Aug 2023 19:48:01 +0200 Subject: [PATCH] fix: modal error --- .../settings/gitConfigurationModal.svelte | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/gitConfigurationModal.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/gitConfigurationModal.svelte index 9bfd1502f..9398679e0 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/gitConfigurationModal.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/gitConfigurationModal.svelte @@ -29,6 +29,7 @@ let selectedBranch: string; let selectedDir: string; let silentMode = false; + let error = ''; let installationsOptions = $installations.installations.map((installation) => { return { @@ -72,12 +73,9 @@ }); trackEvent(Submit.FunctionUpdateConfiguration); show = false; - } catch (error) { - addNotification({ - type: 'error', - message: error.message - }); - trackError(error, Submit.FunctionUpdateConfiguration); + } catch (e) { + error = e.message; + trackError(e, Submit.FunctionUpdateConfiguration); } } @@ -126,7 +124,7 @@ ) ?? null; - + Git configuration

Configure a Git repository that will trigger your function deployments when updated.