You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2021/08/03 16:50:01 UTC

[superset] branch master updated: fix: sync columns in explore page (#16042)

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

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 430ebe1  fix: sync columns in explore page (#16042)
430ebe1 is described below

commit 430ebe18aa0b6f01f012831abd7754aaa8f258a4
Author: Yongjie Zhao <yo...@gmail.com>
AuthorDate: Tue Aug 3 17:49:08 2021 +0100

    fix: sync columns in explore page (#16042)
---
 superset-frontend/src/datasource/DatasourceEditor.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/datasource/DatasourceEditor.jsx b/superset-frontend/src/datasource/DatasourceEditor.jsx
index 046f14f..a7bcab6 100644
--- a/superset-frontend/src/datasource/DatasourceEditor.jsx
+++ b/superset-frontend/src/datasource/DatasourceEditor.jsx
@@ -487,9 +487,9 @@ class DatasourceEditor extends React.PureComponent {
     const { datasource } = this.state;
     const endpoint = `/datasource/external_metadata_by_name/${
       datasource.type || datasource.datasource_type
-    }/${datasource.database.database_name}/${datasource.schema}/${
-      datasource.table_name
-    }/`;
+    }/${datasource.database.database_name || datasource.database.name}/${
+      datasource.schema
+    }/${datasource.table_name}/`;
     this.setState({ metadataLoading: true });
 
     SupersetClient.get({ endpoint })