Fix google sheets import (#11131)

This commit is contained in:
Gerard Burns 2023-07-04 16:52:20 +01:00 committed by GitHub
parent 2e6a3ce047
commit d4f2364ca4
2 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,11 @@ export const createTableSelectionStore = (integration, datasource) => {
datasources.getTableNames(datasource).then(tableNames => { datasources.getTableNames(datasource).then(tableNames => {
tableNamesStore.set(tableNames) tableNamesStore.set(tableNames)
selectedTableNamesStore.set(tableNames.filter(t => datasource.entities[t]))
selectedTableNamesStore.set(
tableNames.filter(tableName => datasource.entities[tableName])
)
loadingStore.set(false) loadingStore.set(false)
}) })

View File

@ -144,8 +144,7 @@ export function createDatasourcesStore() {
const response = await API.createDatasource({ const response = await API.createDatasource({
datasource, datasource,
fetchSchema: fetchSchema: integration.plus,
integration.plus && integration.name !== IntegrationTypes.GOOGLE_SHEETS,
}) })
return updateDatasource(response) return updateDatasource(response)