1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

Quick fix for datasource plus table fetching, make sure the UI lists the tables that the user has requested and no extras.

This commit is contained in:
mike12345567 2023-07-05 10:49:27 +01:00
parent 524d344fe0
commit 3fef064bcc

View file

@ -1,6 +1,6 @@
import { derived, writable, get } from "svelte/store"
import { notifications } from "@budibase/bbui"
import { datasources, ImportTableError } from "stores/backend"
import { datasources, ImportTableError, tables } from "stores/backend"
export const createTableSelectionStore = (integration, datasource) => {
const tableNamesStore = writable([])
@ -27,7 +27,7 @@ export const createTableSelectionStore = (integration, datasource) => {
try {
await datasources.updateSchema(datasource, get(selectedTableNamesStore))
await tables.fetch()
notifications.success(`Tables fetched successfully.`)
await onComplete()
} catch (err) {