From f97f46720a5ded52aa6b592f11b1dca2579bb0b5 Mon Sep 17 00:00:00 2001 From: kunish Date: Wed, 6 Sep 2023 02:17:42 +0800 Subject: [PATCH] fix(connections): limit closed connection items count below 100 --- src/pages/Connections.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Connections.tsx b/src/pages/Connections.tsx index 545a00e..e947c50 100644 --- a/src/pages/Connections.tsx +++ b/src/pages/Connections.tsx @@ -112,7 +112,7 @@ export default () => { ) setClosedConnectionsWithSpeed((prev) => - [...prev, ...closedConnections].slice(-1000), + [...prev, ...closedConnections].slice(-100), ) return connections.slice(-100)