Revert "refactor: filter providers by file type instead of subscription info"

This reverts commit d28d33849c5758bb3e48a8337192096243423fce.
This commit is contained in:
miwu04 2025-04-27 14:30:25 +08:00
parent 00be605e6e
commit afe93774b0
No known key found for this signature in database
GPG Key ID: D22D460B028C00CE

View File

@ -50,16 +50,6 @@ const ProxyProvider: React.FC = () => {
const providers = useMemo(() => { const providers = useMemo(() => {
if (!data) return [] if (!data) return []
return Object.values(data.providers) 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) .filter(provider => 'subscriptionInfo' in provider)
.sort((a, b) => { .sort((a, b) => {
if (a.vehicleType === 'File' && b.vehicleType !== 'File') { if (a.vehicleType === 'File' && b.vehicleType !== 'File') {