1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +12:00

Use redirect instead of goto

This commit is contained in:
Adria Navarro 2023-12-15 13:44:52 +01:00
parent 8515221cdf
commit f8ce1ee365
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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") {