We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef4045 commit d129c0dCopy full SHA for d129c0d
iOS/PostEditor/PostEditorView.swift
@@ -137,6 +137,11 @@ struct PostEditorView: View {
137
})
138
.onAppear(perform: {
139
self.selectedCollection = collections.first { $0.alias == post.collectionAlias }
140
+ if post.status != PostStatus.published.rawValue {
141
+ self.model.editor.saveLastDraft(post)
142
+ } else {
143
+ self.model.editor.clearLastDraft()
144
+ }
145
146
.onDisappear(perform: {
147
if post.title.count == 0
0 commit comments