mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Set collection alias for new local drafts if it exists
This commit is contained in:
parent
c6f108c172
commit
614d5fa72c
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user