Skip to content

Commit

Permalink
fix: ensure validation for db modal for googlesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed Mar 3, 2022
1 parent 150fd0d commit e045ce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset-frontend/src/views/CRUD/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ export function useDatabaseValidation() {
setValidationErrors(null);
})
.catch(e => {
setValidationErrors(null);
if (typeof e.json === 'function') {
e.json().then(({ errors = [] }: JsonObject) => {
const parsedErrors = errors
Expand Down

0 comments on commit e045ce8

Please sign in to comment.