mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Save draftSequence when it is 0 (#15394)
The first draftSequence value is 0 and that was not recognized as a valid value by the client.
This commit is contained in:
parent
8a67be0339
commit
abb57c350d
@ -1234,7 +1234,7 @@ const Composer = RestModel.extend({
|
||||
{ forceSave: this.draftForceSave }
|
||||
)
|
||||
.then((result) => {
|
||||
if (result.draft_sequence) {
|
||||
if ("draft_sequence" in result) {
|
||||
this.set("draftSequence", result.draft_sequence);
|
||||
}
|
||||
if (result.conflict_user) {
|
||||
|
Loading…
Reference in New Issue
Block a user