Update providers index on add provider appearance

This commit is contained in:
Davide De Rosa 2022-04-26 22:15:39 +02:00
parent 6bff878952
commit 1ea380312a
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ struct AddProviderView: View {
if !providers.isEmpty {
providersSection
}
}.onAppear {
viewModel.updateIndex(providerManager)
}.onChange(of: viewModel.errorMessage) {
onErrorMessage($0, scrollProxy)
}.disabled(viewModel.pendingOperation != nil)