chore: better filter

This commit is contained in:
Zephyruso 2023-09-01 11:49:59 +08:00
parent a05c54854a
commit fb7f07d962

View File

@ -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),