Merge branch 'master' of github.com:Budibase/budibase into develop
This commit is contained in:
commit
68c000a2db
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.7.37-alpha.17",
|
"version": "2.8.1",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
@ -19,4 +19,4 @@
|
||||||
"loadEnvFiles": false
|
"loadEnvFiles": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { derived, writable, get } from "svelte/store"
|
import { derived, writable, get } from "svelte/store"
|
||||||
import { keepOpen, notifications } from "@budibase/bbui"
|
import { keepOpen, notifications } from "@budibase/bbui"
|
||||||
import { datasources, ImportTableError } from "stores/backend"
|
import { datasources, ImportTableError, tables } from "stores/backend"
|
||||||
|
|
||||||
export const createTableSelectionStore = (integration, datasource) => {
|
export const createTableSelectionStore = (integration, datasource) => {
|
||||||
const tableNamesStore = writable([])
|
const tableNamesStore = writable([])
|
||||||
|
@ -27,7 +27,7 @@ export const createTableSelectionStore = (integration, datasource) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await datasources.updateSchema(datasource, get(selectedTableNamesStore))
|
await datasources.updateSchema(datasource, get(selectedTableNamesStore))
|
||||||
|
await tables.fetch()
|
||||||
notifications.success(`Tables fetched successfully.`)
|
notifications.success(`Tables fetched successfully.`)
|
||||||
await onComplete()
|
await onComplete()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue