Fix double reload of selected provider server (#851)

Skip initial nil filter, overlaps with initial .reloadServers() in task.

Fixes #850
This commit is contained in:
Davide 2024-11-11 16:11:09 +01:00 committed by GitHub
parent 0686650ccf
commit fb0a9262c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ extension VPNProviderServerView {
errorHandler.handle(error, title: Strings.Global.servers) errorHandler.handle(error, title: Strings.Global.servers)
} }
} }
.onReceive(filtersViewModel.$filters) { newValue in .onReceive(filtersViewModel.$filters.dropFirst()) { newValue in
Task { Task {
await reloadServers(filters: newValue) await reloadServers(filters: newValue)
} }