Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: PreventDefault on a button, thats all

Andras Bacsai8974de165f78
diff --git a/src/routes/sources/[id]/_Github.svelte b/src/routes/sources/[id]/_Github.svelte
index b3285fd6d4..91883d298c 100644
--- a/src/routes/sources/[id]/_Github.svelte
+++ b/src/routes/sources/[id]/_Github.svelte
@@ -73,7 +73,9 @@
class:hover:bg-orange-500={!loading}
disabled={loading}>{loading ? 'Saving...' : 'Save'}</button
>
- <button on:click={() => installRepositories(source)}>Change GitHub App Settings</button>
+ <button on:click|preventDefault={() => installRepositories(source)}
+ >Change GitHub App Settings</button
+ >
{/if}
</div>
<div class="grid grid-flow-row gap-2 px-10">