Change submit if sheets not selected

This commit is contained in:
Adria Navarro 2023-06-07 14:34:31 +01:00
parent 7c39946584
commit 23350016e2
1 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,7 @@
}
}
const modalConfig = {
$: modalConfig = {
[GoogleDatasouceConfigStep.AUTH]: {
title: `Connect to ${integrationName}`,
},
@ -103,7 +103,9 @@
},
[GoogleDatasouceConfigStep.SET_SHEETS]: {
title: `Choose your sheets`,
confirmButtonText: "Fetch sheets",
confirmButtonText: selectedSheets?.length
? "Fetch sheets"
: "Continue without fetching",
onConfirm: async () => {
await saveDatasourceAndRedirect()
},