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