budibase/packages/builder/src/pages/index.svelte

16 lines
366 B
Svelte

<script>
import { redirect } from "@roxi/routify"
import { auth } from "../stores/portal"
import { onMount } from "svelte"
import { notifications } from "@budibase/bbui"
onMount(async () => {
try {
await auth.checkQueryString()
} catch (error) {
notifications.error("Error setting org")
}
$redirect(`./builder`)
})
</script>