You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2020/10/20 21:24:46 UTC

[incubator-superset] branch master updated: Fix tabs switching in SouthPane (#11343)

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

rusackas 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 3a0fcda  Fix tabs switching in SouthPane (#11343)
3a0fcda is described below

commit 3a0fcdacd364a4154ff4d267d2b5812808deb7e6
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Tue Oct 20 23:24:27 2020 +0200

    Fix tabs switching in SouthPane (#11343)
---
 superset-frontend/src/SqlLab/components/SouthPane.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/SqlLab/components/SouthPane.jsx b/superset-frontend/src/SqlLab/components/SouthPane.jsx
index 526508a..ec79973 100644
--- a/superset-frontend/src/SqlLab/components/SouthPane.jsx
+++ b/superset-frontend/src/SqlLab/components/SouthPane.jsx
@@ -160,8 +160,9 @@ export class SouthPane extends React.PureComponent {
     return (
       <div className="SouthPane" ref={this.southPaneRef}>
         <Tabs
-          defaultActiveKey={this.props.activeSouthPaneTab}
+          activeKey={this.props.activeSouthPaneTab}
           className="SouthPaneTabs"
+          onChange={this.switchTab}
           id={shortid.generate()}
           fullWidth={false}
         >