fix(plugin-connection-template): CB-910 data access syntax

This commit is contained in:
Naumov Alexey
2021-04-01 20:25:32 +03:00
parent d1343be9e1
commit 74ab6ec9fd
@@ -114,7 +114,7 @@ export class ConnectionController
this.isConnecting = true;
this.clearError();
try {
const connectionNames = Array.from(this.connectionInfoResource.data.values())
const connectionNames = Array.from(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);