This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch hugh/gsheets-name-validation
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/hugh/gsheets-name-validation
by this push:
new 38bbfde add error type
38bbfde is described below
commit 38bbfde73febccd4ccdca01c6f082a1f3035d9df
Author: hughhhh <[email protected]>
AuthorDate: Wed Aug 4 01:10:29 2021 -0400
add error type
---
superset-frontend/src/views/CRUD/hooks.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/superset-frontend/src/views/CRUD/hooks.ts
b/superset-frontend/src/views/CRUD/hooks.ts
index db1af72..06b9790 100644
--- a/superset-frontend/src/views/CRUD/hooks.ts
+++ b/superset-frontend/src/views/CRUD/hooks.ts
@@ -691,6 +691,7 @@ export function useDatabaseValidation() {
if (extra.catalog.name) {
return {
...obj,
+ error_type,
[extra.catalog.idx]: {
name: message,
},
@@ -699,6 +700,7 @@ export function useDatabaseValidation() {
if (extra.catalog.url) {
return {
...obj,
+ error_type,
[extra.catalog.idx]: {
url: message,
},
@@ -707,6 +709,7 @@ export function useDatabaseValidation() {
return {
...obj,
+ error_type,
[extra.catalog.idx]: {
name: message,
url: message,