You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2019/06/21 04:50:44 UTC

[incubator-superset] branch master updated: [fix] Force refresh table list broken (#7745)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9abcdcc  [fix] Force refresh table list broken (#7745)
9abcdcc is described below

commit 9abcdccf960b30e7feb98edc0c822f55b1998659
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Thu Jun 20 21:50:36 2019 -0700

    [fix] Force refresh table list broken (#7745)
---
 superset/assets/src/components/TableSelector.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/assets/src/components/TableSelector.jsx b/superset/assets/src/components/TableSelector.jsx
index 6d232d4..954e51f 100644
--- a/superset/assets/src/components/TableSelector.jsx
+++ b/superset/assets/src/components/TableSelector.jsx
@@ -183,11 +183,11 @@ export default class TableSelector extends React.PureComponent {
     }
     this.props.onTableChange(tableName, schemaName);
   }
-  changeSchema(schemaOpt) {
+  changeSchema(schemaOpt, force = false) {
     const schema = schemaOpt ? schemaOpt.value : null;
     this.props.onSchemaChange(schema);
     this.setState({ schema }, () => {
-      this.fetchTables();
+      this.fetchTables(force);
       this.onChange();
     });
   }