choose first db if none selected
This commit is contained in:
parent
869f227519
commit
fe89a4fcd1
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { tick } from "svelte"
|
import { tick, onMount } from "svelte"
|
||||||
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 getIcon from "../common/icon"
|
||||||
|
@ -25,6 +25,12 @@
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
if ($store.appInstances.length > 0) {
|
||||||
|
selectDatabase($store.appInstances[0]);
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="root">
|
<div class="root">
|
||||||
|
|
Loading…
Reference in New Issue