betodealmeida commented on a change in pull request #11921:
URL: 
https://github.com/apache/incubator-superset/pull/11921#discussion_r535764275



##########
File path: superset-frontend/src/SqlLab/components/TabbedSqlEditors.jsx
##########
@@ -240,11 +256,10 @@ class TabbedSqlEditors extends React.PureComponent {
   }
 
   newQueryEditor() {
+    console.log(this.state.databaseIds);
     queryCount += 1;
     const activeQueryEditor = this.activeQueryEditor();
-    const firstDbId = Math.min(
-      ...Object.values(this.props.databases).map(database => database.id),
-    );
+    const firstDbId = Math.min(this.state.databaseIds);

Review comment:
       This won't work, right? Right now `getDatabasesIds` returns a list of 
databases.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to