fix autoselecting to sync with url
This commit is contained in:
parent
13dba18215
commit
a78056f6b5
|
@ -3,7 +3,6 @@
|
||||||
import { goto } from "@sveltech/routify"
|
import { goto } from "@sveltech/routify"
|
||||||
import { store, backendUiStore } from "builderStore"
|
import { store, backendUiStore } from "builderStore"
|
||||||
import api from "builderStore/api"
|
import api from "builderStore/api"
|
||||||
import getIcon from "../common/icon"
|
|
||||||
import { CheckIcon } from "../common/Icons"
|
import { CheckIcon } from "../common/Icons"
|
||||||
|
|
||||||
$: instances = $store.appInstances
|
$: instances = $store.appInstances
|
||||||
|
@ -30,6 +29,7 @@
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
if ($store.appInstances.length > 0) {
|
if ($store.appInstances.length > 0) {
|
||||||
selectDatabase($store.appInstances[0])
|
selectDatabase($store.appInstances[0])
|
||||||
|
$goto(`./database/${$backendUiStore.selectedDatabase.id}`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Please select a database
|
|
Loading…
Reference in New Issue