Fix google sheets import (#11131)
This commit is contained in:
parent
2e6a3ce047
commit
d4f2364ca4
|
@ -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)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue