fix(core-app): CB-1675 check if connection is connected

This commit is contained in:
Naumov Alexey
2022-06-17 14:32:20 +02:00
parent 272144d328
commit 96b1632026
3 changed files with 21 additions and 14 deletions
@@ -136,8 +136,9 @@ export class SqlEditorTabService extends Bootstrap {
const objectSchema = this.connectionSchemaManagerService.currentObjectSchema;
const nodeId = objectSchema?.id ?? objectCatalog?.id;
const connection = this.connectionInfoResource.getConnectionForNode(nodeId ?? '');
if (!nodeId) {
if (!nodeId || connection?.connected === false) {
return;
}