Skip to content

Commit

Permalink
fix: proxy group don't have now problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Elziy committed Jun 2, 2024
1 parent f864825 commit 06d983f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/proxies/ProxyGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export const ProxyGroup = connect((s, { name, delay }) => {
const group = proxies[name];
const { all, type, now, icon } = group;
let nowProxy = now;
while (proxies[nowProxy].now) {
nowProxy = proxies[nowProxy].now;
while (proxies[nowProxy]?.now) {
nowProxy = proxies[nowProxy]?.now;
}

return {
Expand Down

0 comments on commit 06d983f

Please sign in to comment.