Use redirect instead of goto
This commit is contained in:
parent
8515221cdf
commit
f8ce1ee365
|
@ -5,7 +5,6 @@
|
|||
import { CookieUtils, Constants } from "@budibase/frontend-core"
|
||||
import { API } from "api"
|
||||
import Branding from "./Branding.svelte"
|
||||
import { goto } from "@roxi/routify"
|
||||
|
||||
let loaded = false
|
||||
|
||||
|
@ -18,7 +17,7 @@
|
|||
|
||||
$: useAccountPortal = cloud && !$admin.disableAccountPortal
|
||||
|
||||
navigation.actions.init($goto)
|
||||
navigation.actions.init($redirect)
|
||||
|
||||
const validateTenantId = async () => {
|
||||
const host = window.location.host
|
||||
|
|
|
@ -5,7 +5,7 @@ export function createNavigationStore() {
|
|||
initialisated: false,
|
||||
goto: undefined,
|
||||
})
|
||||
const { set, subscribe, get } = store
|
||||
const { set, subscribe } = store
|
||||
|
||||
const init = gotoFunc => {
|
||||
if (typeof gotoFunc !== "function") {
|
||||
|
|
Loading…
Reference in New Issue