diff --git a/packages/builder/src/components/backend/DatasourceNavigator/modals/GoogleDatasourceConfigModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/modals/GoogleDatasourceConfigModal.svelte
index a98b76483d..93f8953cb6 100644
--- a/packages/builder/src/components/backend/DatasourceNavigator/modals/GoogleDatasourceConfigModal.svelte
+++ b/packages/builder/src/components/backend/DatasourceNavigator/modals/GoogleDatasourceConfigModal.svelte
@@ -5,6 +5,7 @@
Layout,
Link,
notifications,
+ FancyCheckboxGroup,
} from "@budibase/bbui"
import { IntegrationNames, IntegrationTypes } from "constants/backend"
import GoogleButton from "../_components/GoogleButton.svelte"
@@ -17,7 +18,6 @@
import cloneDeep from "lodash/cloneDeepWith"
import IntegrationConfigForm from "../TableIntegrationMenu/IntegrationConfigForm.svelte"
import { goto } from "@roxi/routify"
- import { API } from "api"
import { saveDatasource } from "builderStore/datasource"
import { DatasourceFeature } from "@budibase/types"
@@ -48,10 +48,13 @@
let isValid = false
let allSheets
+ let selectedSheets
const saveDatasourceAndRedirect = async () => {
try {
- const resp = await saveDatasource(datasource)
+ const resp = await saveDatasource(datasource, {
+ tablesFilter: selectedSheets,
+ })
$goto(`./datasource/${resp._id}`)
notifications.success(`Datasource created successfully.`)
} catch (err) {
@@ -150,9 +153,7 @@
Select which spreadsheets you want to connect.
- {#each allSheets as sheet}
- {sheet}
- {/each}
+
{/if}
diff --git a/packages/server/src/integrations/googlesheets.ts b/packages/server/src/integrations/googlesheets.ts
index a0c10d3655..3af564d059 100644
--- a/packages/server/src/integrations/googlesheets.ts
+++ b/packages/server/src/integrations/googlesheets.ts
@@ -274,10 +274,6 @@ class GoogleSheetsIntegration implements DatasourcePlus {
}
async buildSchema(datasourceId: string, entities: Record) {
- // not fully configured yet
- if (!this.config.auth) {
- return
- }
await this.connect()
const sheets = this.client.sheetsByIndex
const tables: Record = {}