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:
parent
0686650ccf
commit
fb0a9262c0
|
@ -166,7 +166,7 @@ extension VPNProviderServerView {
|
|||
errorHandler.handle(error, title: Strings.Global.servers)
|
||||
}
|
||||
}
|
||||
.onReceive(filtersViewModel.$filters) { newValue in
|
||||
.onReceive(filtersViewModel.$filters.dropFirst()) { newValue in
|
||||
Task {
|
||||
await reloadServers(filters: newValue)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue