This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch hugh/fix-doc
in repository https://gitbox.apache.org/repos/asf/superset.git

commit eaa5613b141fea855244e57f88c66036c570a792
Author: hughhhh <[email protected]>
AuthorDate: Fri Jun 25 11:18:08 2021 -0700

    fix doc
---
 .../src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx          | 2 +-
 superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx 
b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx
index 431dc71..946f21e 100644
--- 
a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx
+++ 
b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/ModalHeader.tsx
@@ -96,7 +96,7 @@ const ModalHeader = ({
             target="_blank"
             rel="noopener noreferrer"
           >
-            connecting to {dbName}.
+            connecting to {dbModel.name}.
           </a>
         </p>
       </StyledFormHeader>
diff --git 
a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx 
b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
index 8f579ff..2bbdb37 100644
--- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
+++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
@@ -284,7 +284,7 @@ function dbReducer(
 
       return {
         ...action.payload,
-        engine: action.payload.backend,
+        engine: action.payload.backend || trimmedState.engine,
         configuration_method: action.payload.configuration_method,
         extra_json: deserializeExtraJSON,
         parameters: {

Reply via email to