1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +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 { CookieUtils, Constants } from "@budibase/frontend-core"
import { API } from "api" import { API } from "api"
import Branding from "./Branding.svelte" import Branding from "./Branding.svelte"
import { goto } from "@roxi/routify"
let loaded = false let loaded = false
@ -18,7 +17,7 @@
$: useAccountPortal = cloud && !$admin.disableAccountPortal $: useAccountPortal = cloud && !$admin.disableAccountPortal
navigation.actions.init($goto) navigation.actions.init($redirect)
const validateTenantId = async () => { const validateTenantId = async () => {
const host = window.location.host const host = window.location.host

View file

@ -5,7 +5,7 @@ export function createNavigationStore() {
initialisated: false, initialisated: false,
goto: undefined, goto: undefined,
}) })
const { set, subscribe, get } = store const { set, subscribe } = store
const init = gotoFunc => { const init = gotoFunc => {
if (typeof gotoFunc !== "function") { if (typeof gotoFunc !== "function") {