fix: dashboard onMount issue (rare)

This commit is contained in:
Ben Allfree 2024-11-18 04:59:39 -08:00
parent efdaf533d8
commit 0736b82d02

View File

@ -7,6 +7,7 @@
import NewInstanceProcessingBlock from './NewInstanceProcessingBlock.svelte'
import Fa from 'svelte-fa'
import { faArrowRight, faRotate } from '@fortawesome/free-solid-svg-icons'
import { onMount } from 'svelte'
export let isSignUpView: boolean = false
let isProcessing: boolean = false
@ -30,6 +31,7 @@
instanceNameField.set(name)
}
onMount(() => {
instanceNameField.subscribe(async (name) => {
if (name === $instanceInfo.name) return
try {
@ -56,8 +58,11 @@
}))
}
})
})
onMount(() => {
generateSlug()
})
// Set up the variables to hold the form information
let email: string = ''