1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00
budibase/packages/builder/src/pages/index.svelte
2022-01-25 15:28:31 +00:00

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>