mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Make sure we persist changes to edited AND local posts
This commit is contained in:
parent
1baede6cdb
commit
562e3c6a8a
@ -43,7 +43,7 @@ struct PostEditorView: View {
|
||||
}
|
||||
})
|
||||
.onDisappear(perform: {
|
||||
if post.status == PostStatus.edited.rawValue {
|
||||
if post.status < PostStatus.published.rawValue {
|
||||
DispatchQueue.main.async {
|
||||
PersistenceManager().saveContext()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user