Merge pull request #182 from writeas/stay-in-selected-blog-on-new-post

Don't trigger navigation to Drafts list when creating new post
This commit is contained in:
Angelo Stavrow 2021-04-07 11:02:48 -04:00 committed by GitHub
commit 733745240a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,6 @@ struct PostListView: View {
let managedPost = model.editor.generateNewLocalPost(withFont: model.preferences.font) let managedPost = model.editor.generateNewLocalPost(withFont: model.preferences.font)
withAnimation { withAnimation {
self.model.showAllPosts = false self.model.showAllPosts = false
self.model.selectedCollection = nil
self.model.selectedPost = managedPost self.model.selectedPost = managedPost
} }
}, label: { }, label: {