From 5e4abd3e81d70bcb9b3a897d38d6f8ec3ff0706b Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Sun, 1 May 2022 10:23:03 +0200 Subject: [PATCH] fix: prevents query tabs targets previous schema if not in explorebar, closes #236 --- src/renderer/components/WorkspaceTabQuery.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/components/WorkspaceTabQuery.vue b/src/renderer/components/WorkspaceTabQuery.vue index b7d0f799..ecd2dcb7 100644 --- a/src/renderer/components/WorkspaceTabQuery.vue +++ b/src/renderer/components/WorkspaceTabQuery.vue @@ -302,6 +302,9 @@ export default { this.query = this.tab.content; this.selectedSchema = this.tab.schema || this.breadcrumbsSchema; + if (!this.databaseSchemas.includes(this.selectedSchema)) + this.selectedSchema = null; + window.addEventListener('keydown', this.onKey); }, mounted () {