Merge pull request #1177 from dbeaver/hotfix/release_22_2_1

Hotfix/release 22 2 1
This commit is contained in:
Alexey
2022-09-22 13:00:38 +03:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
@@ -97,7 +97,7 @@ export class ConnectionInfoResource extends CachedMapResource<IConnectionInfoPar
this.onConnectionCreate.addHandler(ExecutorInterrupter.interrupter(() => this.sessionUpdate));
permissionsResource.require(this, EPermission.public);
this.sync(this.projectInfoResource, () => CachedMapAllKey);
this.sync(this.projectInfoResource, () => CachedMapAllKey, () => CachedMapAllKey);
sessionDataResource.onDataOutdated.addHandler(() => {
this.sessionUpdate = true;
@@ -111,7 +111,7 @@ export class NavTreeResource extends CachedMapResource<string, string[]> {
// navNodeInfoResource.preloadResource(this);
this.outdateResource(navNodeInfoResource);
this.updateResource(navNodeInfoResource);
this.sync(this.projectInfoResource, () => CachedMapAllKey);
this.sync(this.projectInfoResource, () => CachedMapAllKey, () => CachedMapAllKey);
this.sessionDataResource.outdateResource(this);
this.userInfoResource.onUserChange.addHandler(action(() => {
this.clear();
@@ -64,7 +64,7 @@ export class ProjectsService {
get defaultProject(): ProjectInfo | undefined {
let project = this.userProject;
if (!project && this.activeProjects.length > 0) {
if ((!project || this.activeProjectIds.length > 0) && this.activeProjects.length > 0) {
project = this.activeProjects[0];
}
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@cloudbeaver/product-default",
"sideEffects": false,
"version": "22.2.0",
"version": "22.2.1",
"description": "",
"license": "Apache-2.0",
"main": "lib/index.js",
@@ -26,10 +26,9 @@
"@cloudbeaver/plugin-authentication": "0.1.0",
"@cloudbeaver/plugin-authentication-administration": "0.1.0",
"@cloudbeaver/plugin-connection-custom": "0.1.0",
"@cloudbeaver/plugin-connection-template": "0.1.0",
"@cloudbeaver/plugin-connection-search": "0.1.0",
"@cloudbeaver/plugin-connection-template": "0.1.0",
"@cloudbeaver/plugin-connections": "0.1.0",
"@cloudbeaver/plugin-projects": "0.1.0",
"@cloudbeaver/plugin-data-export": "0.1.0",
"@cloudbeaver/plugin-data-spreadsheet-new": "0.1.0",
"@cloudbeaver/plugin-data-viewer": "0.1.0",
@@ -39,6 +38,7 @@
"@cloudbeaver/plugin-log-viewer": "0.1.0",
"@cloudbeaver/plugin-navigation-tree": "0.1.0",
"@cloudbeaver/plugin-object-viewer": "0.1.0",
"@cloudbeaver/plugin-projects": "0.1.0",
"@cloudbeaver/plugin-settings-menu": "0.1.0",
"@cloudbeaver/plugin-settings-menu-administration": "0.1.0",
"@cloudbeaver/plugin-sql-editor": "0.1.0",