From 34eaf5b6bb82a761414c0d33807e2504042cb0f0 Mon Sep 17 00:00:00 2001 From: WANGSHIFU <16408269+wotmshuaisi@users.noreply.github.com> Date: Tue, 21 Sep 2021 04:12:21 +0000 Subject: [PATCH] Chore: code is modifying constant object in store.ts (#81) --- src/containers/Connections/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/Connections/store.ts b/src/containers/Connections/store.ts index 380c9d3..e89e7d7 100644 --- a/src/containers/Connections/store.ts +++ b/src/containers/Connections/store.ts @@ -37,7 +37,7 @@ class Store { if (!this.saveDisconnection) { this.connections.delete(id) } else { - const connection = this.connections.get(id) + let connection = this.connections.get(id) if (connection != null) { connection.completed = true connection.uploadSpeed = 0