mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-28 03:41:48 +08:00
fix(core-app): CB-1675 check if connection is connected
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user