From c5458159d1e30cecf6615086c074d98b4b599637 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Fri, 11 Dec 2020 18:22:07 +0100 Subject: [PATCH] fix: unable to switch tabs when no table selected --- src/renderer/components/Workspace.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/Workspace.vue b/src/renderer/components/Workspace.vue index cd59c3dd..f77dbc76 100644 --- a/src/renderer/components/Workspace.vue +++ b/src/renderer/components/Workspace.vue @@ -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) ||