fix: fix broken hideUnavailableProxies setting

This commit is contained in:
Haishan 2020-06-18 21:02:06 +08:00
parent f1d0714f19
commit 40479ada88

View file

@ -112,7 +112,7 @@ export function fetchProxies(apiConfig: APIConfig) {
const name = proxyNames[i]; const name = proxyNames[i];
const { history } = proxies[name] || { history: [] }; const { history } = proxies[name] || { history: [] };
const h = history[history.length - 1]; const h = history[history.length - 1];
if (h && h.delay) { if (h && typeof h.delay === 'number') {
delayNext[name] = { number: h.delay }; delayNext[name] = { number: h.delay };
} }
} }