Skip to content

Commit

Permalink
Reload pane content when change database (avoid exception)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxa committed Aug 29, 2021
1 parent 5a87d8e commit 5bb3d09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/db_screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ class DbScreen {
this.currentTable = null;
this.currentSchema = null;

if (this.currentTab != 'query') {
this.activateTab(this.currentTab, 'force');
}

if (database) {
this.connection.switchDb(this.database, () => {
this.fetchTablesAndSchemas();
Expand Down

0 comments on commit 5bb3d09

Please sign in to comment.