Skip to content

Commit

Permalink
Merge pull request #12127 from Budibase/fix/12121-datasource-error-st…
Browse files Browse the repository at this point in the history
…opping-creation

Datasource errors blocking full creation steps
  • Loading branch information
mike12345567 authored Oct 20, 2023
2 parents 90cdda7 + dbf5a9c commit 89d6486
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/builder/src/stores/backend/datasources.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export function createDatasourcesStore() {
}))
}

const updateDatasource = response => {
const updateDatasource = (response, { ignoreErrors } = {}) => {
const { datasource, errors } = response
if (errors && Object.keys(errors).length > 0) {
if (!ignoreErrors && errors && Object.keys(errors).length > 0) {
throw new TableImportError(errors)
}
replaceDatasource(datasource._id, datasource)
Expand Down Expand Up @@ -137,7 +137,7 @@ export function createDatasourcesStore() {
fetchSchema: integration.plus,
})

return updateDatasource(response)
return updateDatasource(response, { ignoreErrors: true })
}

const update = async ({ integration, datasource }) => {
Expand Down

0 comments on commit 89d6486

Please sign in to comment.