1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

EC-841 Fix Watch fetch cipher and added condition for previews (#2236)

This commit is contained in:
Federico Maccaroni 2022-12-13 16:36:45 -03:00 committed by GitHub
parent e3dafb502b
commit 7785b2dbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,11 @@ struct CipherListView: View {
.navigationTitle("Bitwarden")
.navigationBarTitleDisplayMode(.inline)
.onAppear {
#if targetEnvironment(simulator) // for the preview
self.viewModel.fetchCiphers()
#else
self.viewModel.checkStateAndFetch()
#endif
}
.fullScreenCover(isPresented: $viewModel.showingSheet) {
BWStateView(viewModel.currentState)