Prevent main post form from being associated with draft on load

This commit is contained in:
tusooa 2023-04-05 23:45:19 -04:00
parent bae81f8d39
commit b3236e707c
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ const PostStatusForm = {
const [statusType, refId] = typeAndRefId({ replyTo: this.replyTo, statusId: this.statusId }) 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 (!statusParams) {
if (statusType === 'reply') { if (statusType === 'reply') {