mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
EC-841 Fix Watch fetch cipher and added condition for previews (#2236)
This commit is contained in:
parent
e3dafb502b
commit
7785b2dbf9
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue