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