From 22af3b1c5ea4d80217b52b20c1b1775f667e605d Mon Sep 17 00:00:00 2001 From: sergeyteleshev Date: Wed, 11 Dec 2024 11:16:09 +0100 Subject: [PATCH] CB-5935 removes perform update for changing connection view (#3124) Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com> Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com> --- .../src/ConnectionInfoResource.ts | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/webapp/packages/core-connections/src/ConnectionInfoResource.ts b/webapp/packages/core-connections/src/ConnectionInfoResource.ts index 2d1fcd1a99..fb975d1612 100644 --- a/webapp/packages/core-connections/src/ConnectionInfoResource.ts +++ b/webapp/packages/core-connections/src/ConnectionInfoResource.ts @@ -421,20 +421,18 @@ export class ConnectionInfoResource extends CachedMapResource { - await this.performUpdate(key, [], async () => { - const connectionNavigatorViewSettings = this.get(key)?.navigatorSettings || DEFAULT_NAVIGATOR_VIEW_SETTINGS; - const { connection } = await this.graphQLService.sdk.setConnectionNavigatorSettings({ - connectionId: key.connectionId, - projectId: key.projectId, - settings: { ...connectionNavigatorViewSettings, ...settings }, - ...this.getDefaultIncludes(), - ...this.getIncludesMap(key), - }); - - this.set(createConnectionParam(connection), connection); - this.onDataOutdated.execute(key); + const connectionNavigatorViewSettings = this.get(key)?.navigatorSettings || DEFAULT_NAVIGATOR_VIEW_SETTINGS; + const { connection } = await this.graphQLService.sdk.setConnectionNavigatorSettings({ + connectionId: key.connectionId, + projectId: key.projectId, + settings: { ...connectionNavigatorViewSettings, ...settings }, + ...this.getDefaultIncludes(), + ...this.getIncludesMap(key), }); + this.set(createConnectionParam(connection), connection); + this.onDataOutdated.execute(key); + return this.get(key)!; }