From b3236e707caeecfb682c4a191a5fbe71ea20cb70 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 5f274b55..9163db40 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -138,7 +138,8 @@ const PostStatusForm = { const [statusType, refId] = typeAndRefId({ replyTo: this.replyTo, 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') {