mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
Revert "refactor: filter providers by file type instead of subscription info"
This reverts commit d28d33849c5758bb3e48a8337192096243423fce.
This commit is contained in:
parent
00be605e6e
commit
afe93774b0
@ -50,16 +50,6 @@ const ProxyProvider: React.FC = () => {
|
||||
const providers = useMemo(() => {
|
||||
if (!data) return []
|
||||
return Object.values(data.providers)
|
||||
.map(provider => {
|
||||
if (provider.vehicleType === 'Inline' || provider.vehicleType === 'File') {
|
||||
return {
|
||||
...provider,
|
||||
subscriptionInfo: null
|
||||
}
|
||||
}
|
||||
return provider
|
||||
})
|
||||
|
||||
.filter(provider => 'subscriptionInfo' in provider)
|
||||
.sort((a, b) => {
|
||||
if (a.vehicleType === 'File' && b.vehicleType !== 'File') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user