Browse Source

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

github-services/pull/2242/head
Federico Maccaroni 3 years ago committed by GitHub
parent
commit
7785b2dbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/watchOS/bitwarden/bitwarden WatchKit Extension/Views/CipherListView.swift

4
src/watchOS/bitwarden/bitwarden WatchKit Extension/Views/CipherListView.swift

@ -86,7 +86,11 @@ struct CipherListView: View { @@ -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…
Cancel
Save