Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update with-svelte.mdx (#19347)

shinriyo61085c79c254
diff --git a/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx b/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx
index 85a9f223967..0ea00c80b3c 100644
--- a/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx
+++ b/apps/docs/content/guides/getting-started/tutorials/with-svelte.mdx
@@ -221,7 +221,7 @@ Now that we have all the components in place, let's update `App.svelte`:
import Account from './lib/Account.svelte'
import Auth from './lib/Auth.svelte'
- let session: AuthSession
+ let session: AuthSession | null
onMount(() => {
supabase.auth.getSession().then(({ data }) => {
@@ -269,9 +269,9 @@ Let's create an avatar for the user so that they can upload a profile photo. We
import { supabase } from '../supabaseClient'
export let size: number
- export let url: string
+ export let url: string | null = null
- let avatarUrl: string = null
+ let avatarUrl: string | null = null
let uploading = false
let files: FileList
@@ -341,8 +341,8 @@ Let's create an avatar for the user so that they can upload a profile photo. We
id="single"
accept="image/*"
bind:files
- on:change="{uploadAvatar}"
- disabled="{uploading}"
+ on:change={uploadAvatar}
+ disabled={uploading}
/>
</span>
</div>