From 1ea380312ae207b866b7e0e4d53ff4ca471dc872 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 26 Apr 2022 22:15:39 +0200 Subject: [PATCH] Update providers index on add provider appearance --- Passepartout/App/Views/AddProviderView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Passepartout/App/Views/AddProviderView.swift b/Passepartout/App/Views/AddProviderView.swift index c65d9a43..23bc8e3a 100644 --- a/Passepartout/App/Views/AddProviderView.swift +++ b/Passepartout/App/Views/AddProviderView.swift @@ -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)