Set collection alias for new local drafts if it exists

This commit is contained in:
Angelo Stavrow 2020-09-10 09:35:18 -04:00
parent c6f108c172
commit 614d5fa72c
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -117,6 +117,9 @@ struct PostListView: View {
managedPost.title = ""
managedPost.body = ""
managedPost.status = PostStatus.local.rawValue
if let selectedCollectionAlias = selectedCollection?.alias {
managedPost.collectionAlias = selectedCollectionAlias
}
DispatchQueue.main.async {
LocalStorageManager().saveContext()
}