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

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 => {
tableNamesStore.set(tableNames)
selectedTableNamesStore.set(tableNames.filter(t => datasource.entities[t]))
selectedTableNamesStore.set(
tableNames.filter(tableName => datasource.entities[tableName])
)
loadingStore.set(false)
})

View file

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