We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f3e201 commit 0fe4644Copy full SHA for 0fe4644
site/src/modules/dashboard/Navbar/proxyUtils.tsx
@@ -4,7 +4,7 @@ export function sortProxiesByLatency(
4
proxies: Proxies,
5
latencies: ProxyLatencies,
6
) {
7
- return proxies.toSorted((a, b) => {
+ return [...proxies].sort((a, b) => {
8
const latencyA = latencies?.[a.id]?.latencyMS ?? Number.POSITIVE_INFINITY;
9
const latencyB = latencies?.[b.id]?.latencyMS ?? Number.POSITIVE_INFINITY;
10
return latencyA - latencyB;
0 commit comments