fix: prevents query tabs targets previous schema if not in explorebar, closes #236

This commit is contained in:
Fabio Di Stasio 2022-05-01 10:23:03 +02:00
parent 75aa299f8d
commit 5e4abd3e81
1 changed files with 3 additions and 0 deletions

View File

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