mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#9095 load active connections before checking execution context (#4355)
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
@@ -314,11 +314,11 @@ export class SqlEditorTabService extends Bootstrap {
|
||||
}
|
||||
|
||||
const dataSource = this.sqlDataSourceService.create(tab.handlerState, tab.handlerState.datasourceKey);
|
||||
|
||||
await this.connectionInfoResource.load(ConnectionInfoActiveProjectKey);
|
||||
const executionContext = dataSource.executionContext;
|
||||
|
||||
if (executionContext) {
|
||||
await this.connectionInfoResource.load(ConnectionInfoActiveProjectKey);
|
||||
|
||||
const contextConnection = createConnectionParam(executionContext.projectId, executionContext.connectionId);
|
||||
|
||||
if (!this.connectionInfoResource.has(contextConnection)) {
|
||||
|
||||
Reference in New Issue
Block a user