Prevent main post form from being associated with draft on load
This commit is contained in:
parent
edcd6982a5
commit
5206609812
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ const PostStatusForm = {
|
||||||
|
|
||||||
const [statusType, refId] = typeAndRefId({ replyTo: this.replyTo, profileMention: this.profileMention, statusId: this.statusId })
|
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 (!statusParams) {
|
||||||
if (statusType === 'reply' || statusType === 'mention') {
|
if (statusType === 'reply' || statusType === 'mention') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue