Fix latency not displayed for item in proxy provider

ref #659
This commit is contained in:
Haishan 2022-06-11 17:01:49 +08:00
parent 82dcba042a
commit 8a2c3d83a8

View file

@ -1,5 +1,4 @@
import { atom } from 'recoil';
/* import { ProxyItem, ProxiesMapping, DelayMapping } from 'src/store/types'; */
import {
DispatchFn,
FormattedProxyProvider,
@ -35,9 +34,10 @@ const noop = () => null;
export const NonProxyTypes = [
'Direct',
'Fallback',
'Reject',
'Relay',
'Selector',
'Fallback',
'URLTest',
'LoadBalance',
'Unknown',
@ -60,7 +60,7 @@ export function fetchProxies(apiConfig: ClashAPIConfig) {
const { providers: proxyProviders, proxies: providerProxies } = formatProxyProviders(
providersData.providers
);
const proxies = { ...providerProxies, ...proxiesData.proxies };
const proxies = { ...proxiesData.proxies, ...providerProxies };
const [groupNames, proxyNames] = retrieveGroupNamesFrom(proxies);
const delayPrev = getDelay(getState());