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