Don't trigger navigation to Drafts list when creating new post

This commit is contained in:
Angelo Stavrow 2021-03-18 16:25:30 -04:00
parent dd4a82ac80
commit 4d4032594c
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

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: {