mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-02 11:15:35 +03:00
Merge pull request #2629 from ecency/nt/drafts-fix
avoid local draft load if draft body is empty
This commit is contained in:
commit
139444420d
@ -234,7 +234,7 @@ class EditorContainer extends Component<EditorContainerProps, any> {
|
||||
// if no draft, use result anayways
|
||||
|
||||
const _remoteDraftModifiedAt = paramDraft ? new Date(paramDraft.modified).getTime() : 0;
|
||||
const _useLocalDraft = _remoteDraftModifiedAt < (_localDraft?.updated || 0);
|
||||
const _useLocalDraft = _remoteDraftModifiedAt < (_localDraft?.updated || 0) && !!_localDraft.body
|
||||
if (_useLocalDraft) {
|
||||
this.setState({
|
||||
draftPost: {
|
||||
|
Loading…
Reference in New Issue
Block a user