diff --git a/webapp/packages/plugin-sql-editor-navigation-tab/src/SqlEditorTabService.ts b/webapp/packages/plugin-sql-editor-navigation-tab/src/SqlEditorTabService.ts index e040d4b72b..025091fb3b 100644 --- a/webapp/packages/plugin-sql-editor-navigation-tab/src/SqlEditorTabService.ts +++ b/webapp/packages/plugin-sql-editor-navigation-tab/src/SqlEditorTabService.ts @@ -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)) {