Drafts: Fix drafts erasing edits and redrafts

This commit is contained in:
solidsanek 2023-04-09 11:02:13 +02:00 committed by hynet-mel
parent e5b226799d
commit 9056321750

View file

@ -169,6 +169,7 @@ const PostStatusForm = {
} }
} }
if (!this.statusId) {
let draftKey = 'status'; let draftKey = 'status';
if (this.replyTo) { if (this.replyTo) {
draftKey = 'reply:' + this.replyTo; draftKey = 'reply:' + this.replyTo;
@ -196,6 +197,7 @@ const PostStatusForm = {
this.togglePollForm(); this.togglePollForm();
} }
} }
}
return { return {
dropFiles: [], dropFiles: [],