fix(UI): data tab opened when non-table element is selected

This commit is contained in:
Fabio Di Stasio 2021-02-22 11:10:04 +01:00
parent b54fefbf25
commit dbab06fcb8
1 changed files with 14 additions and 7 deletions

View File

@ -164,6 +164,7 @@ export default {
},
selectedTab () {
if (
(
this.workspace.breadcrumbs.table === null &&
this.workspace.breadcrumbs.view === null &&
this.workspace.breadcrumbs.trigger === null &&
@ -171,6 +172,12 @@ export default {
this.workspace.breadcrumbs.function === null &&
this.workspace.breadcrumbs.scheduler === null &&
['data', 'prop'].includes(this.workspace.selected_tab)
) ||
(
this.workspace.breadcrumbs.table === null &&
this.workspace.breadcrumbs.view === null &&
this.workspace.selected_tab === 'data'
)
)
return this.queryTabs[0].uid;