From 5206609812c5420ddc7aebc818f89c34162f28fa Mon Sep 17 00:00:00 2001 From: tusooa Date: Wed, 5 Apr 2023 23:45:19 -0400 Subject: [PATCH] Prevent main post form from being associated with draft on load --- src/components/post_status_form/post_status_form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index f4341cfa..bcf5440f 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -142,7 +142,8 @@ const PostStatusForm = { const [statusType, refId] = typeAndRefId({ replyTo: this.replyTo, profileMention: this.profileMention, statusId: this.statusId }) - let statusParams = this.getDraft(statusType, refId) + // If we are starting a new post, do not associate it with old drafts + let statusParams = (this.draftId || statusType !== 'new') ? this.getDraft(statusType, refId) : null if (!statusParams) { if (statusType === 'reply' || statusType === 'mention') {