From 3343bba7484bd13deb7e4fa842be72e579c8277f Mon Sep 17 00:00:00 2001 From: Naumov Alexey Date: Thu, 1 Apr 2021 20:31:01 +0300 Subject: [PATCH] fix(plugin-connection-template): CB-910 remove unnecessary code --- .../src/ConnectionDialog/ConnectionController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts b/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts index 84c8dcc73a..29956bda46 100644 --- a/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts +++ b/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts @@ -114,8 +114,7 @@ export class ConnectionController this.isConnecting = true; this.clearError(); try { - const connectionNames = Array.from(this.connectionInfoResource.values) - .map(connection => connection.name); + const connectionNames = this.connectionInfoResource.values.map(connection => connection.name); const uniqueConnectionName = getUniqueConnectionName(this.template.name || 'Template connection', connectionNames); const connection = await this.connectionInfoResource.createFromTemplate(this.template.id, uniqueConnectionName);