mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
chore: better filter
This commit is contained in:
parent
a05c54854a
commit
fb7f07d962
@ -38,7 +38,7 @@ export function useProxies() {
|
|||||||
setDelayMap(delay)
|
setDelayMap(delay)
|
||||||
setProxies(
|
setProxies(
|
||||||
Object.values(proxies)
|
Object.values(proxies)
|
||||||
.filter((proxy) => proxy.all && proxy.all.length > 0)
|
.filter((proxy) => proxy.all?.length)
|
||||||
.sort(
|
.sort(
|
||||||
(pre, next) =>
|
(pre, next) =>
|
||||||
sortIndex.indexOf(pre.name) - sortIndex.indexOf(next.name),
|
sortIndex.indexOf(pre.name) - sortIndex.indexOf(next.name),
|
||||||
|
Loading…
Reference in New Issue
Block a user