Browse Source
Merge pull request #187 from shogunpurple/choose-first-db
choose first db if none selected
gh-pages
Martin McKeaveney
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
1 deletions
-
packages/builder/src/nav/DatabasesList.svelte
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
<script> |
|
|
|
import { tick } from "svelte" |
|
|
|
import { tick, onMount } from "svelte" |
|
|
|
import { store, backendUiStore } from "../builderStore" |
|
|
|
import api from "../builderStore/api" |
|
|
|
import getIcon from "../common/icon" |
|
|
|
@ -25,6 +25,12 @@ |
|
|
|
return state |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
onMount(() => { |
|
|
|
if ($store.appInstances.length > 0) { |
|
|
|
selectDatabase($store.appInstances[0]); |
|
|
|
} |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
<div class="root"> |
|
|
|
|