mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Reset showRecommendSheet properly so the form sheet can be re-opened
This commit is contained in:
parent
66fc258e0c
commit
19a5495bd3
2 changed files with 2 additions and 2 deletions
|
|
@ -222,7 +222,6 @@ struct WebReaderContainerView: View {
|
|||
)
|
||||
Button(
|
||||
action: {
|
||||
// dataService.updateLinkReadingProgress(itemID: item.unwrappedID, readingProgress: 0, anchorIndex: 0)
|
||||
showRecommendSheet = true
|
||||
},
|
||||
label: { Label("Recommend", systemImage: "sparkles") }
|
||||
|
|
@ -365,6 +364,8 @@ struct WebReaderContainerView: View {
|
|||
dataService: dataService,
|
||||
viewModel: RecommendToViewModel(pageID: item.unwrappedID)
|
||||
)
|
||||
}.onDisappear {
|
||||
showRecommendSheet = false
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $showHighlightAnnotationModal) {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@ public extension DataService {
|
|||
}
|
||||
}
|
||||
case let .failure(error):
|
||||
print("RESULT: ", result)
|
||||
continuation.resume(throwing: SaveArticleError.make(from: error))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue