Skip to content

Commit

Permalink
fix: modal error
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanNik committed Aug 21, 2023
1 parent ddab26a commit aea6e50
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
let selectedBranch: string;
let selectedDir: string;
let silentMode = false;
let error = '';
let installationsOptions = $installations.installations.map((installation) => {
return {
Expand Down Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -126,7 +124,7 @@
) ?? null;
</script>

<Modal headerDivider={false} bind:show size="big" onSubmit={handleSubmit}>
<Modal headerDivider={false} bind:show size="big" bind:error onSubmit={handleSubmit}>
<svelte:fragment slot="header">Git configuration</svelte:fragment>
<p class="text">
Configure a Git repository that will trigger your function deployments when updated.
Expand Down

0 comments on commit aea6e50

Please sign in to comment.