mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Reset selectedCollection/showAllPosts when dismissing PostListView
This commit is contained in:
parent
a0b1218473
commit
709a654528
@ -104,6 +104,8 @@ struct PostListView: View {
|
||||
}
|
||||
.onDisappear {
|
||||
DispatchQueue.main.async {
|
||||
model.selectedCollection = nil
|
||||
model.showAllPosts = true
|
||||
model.selectedPost = nil
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user