mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: prevents query tabs targets previous schema if not in explorebar, closes #236
This commit is contained in:
@ -302,6 +302,9 @@ export default {
|
|||||||
this.query = this.tab.content;
|
this.query = this.tab.content;
|
||||||
this.selectedSchema = this.tab.schema || this.breadcrumbsSchema;
|
this.selectedSchema = this.tab.schema || this.breadcrumbsSchema;
|
||||||
|
|
||||||
|
if (!this.databaseSchemas.includes(this.selectedSchema))
|
||||||
|
this.selectedSchema = null;
|
||||||
|
|
||||||
window.addEventListener('keydown', this.onKey);
|
window.addEventListener('keydown', this.onKey);
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
Reference in New Issue
Block a user