Skip to content

Commit

Permalink
fix: unable to switch tabs when no table selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Dec 11, 2020
1 parent 1476e89 commit c545815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/Workspace.vue
Expand Up @@ -123,7 +123,7 @@ export default {
return this.selectedWorkspace === this.connection.uid;
},
selectedTab () {
if (this.workspace.breadcrumbs.table === null)
if (this.workspace.breadcrumbs.table === null && ['data', 'prop'].includes(this.workspace.selected_tab))
return this.queryTabs[0].uid;
return this.queryTabs.find(tab => tab.uid === this.workspace.selected_tab) ||
Expand Down

0 comments on commit c545815

Please sign in to comment.