mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 12:38:21 -05: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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user