fix: unable to switch tabs when no table selected

This commit is contained in:
Fabio Di Stasio 2020-12-11 18:22:07 +01:00
parent 1476e899d1
commit c5458159d1
1 changed files with 1 additions and 1 deletions

View File

@ -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) ||