2021-05-06 15:49:11 +02:00
|
|
|
<script>
|
2021-05-18 15:39:26 +02:00
|
|
|
import { redirect } from "@roxi/routify"
|
2021-08-05 10:59:08 +02:00
|
|
|
import { auth } from "../stores/portal"
|
|
|
|
import { onMount } from "svelte"
|
2022-01-25 16:28:31 +01:00
|
|
|
import { notifications } from "@budibase/bbui"
|
2021-08-05 10:59:08 +02:00
|
|
|
|
2022-01-25 16:28:31 +01:00
|
|
|
onMount(async () => {
|
|
|
|
try {
|
|
|
|
await auth.checkQueryString()
|
|
|
|
} catch (error) {
|
|
|
|
notifications.error("Error setting org")
|
|
|
|
}
|
2021-08-05 10:59:08 +02:00
|
|
|
$redirect(`./builder`)
|
|
|
|
})
|
2021-05-06 15:49:11 +02:00
|
|
|
</script>
|