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:
Bianca Nenciu 2021-12-22 22:01:28 +02:00 committed by GitHub
parent 8a67be0339
commit abb57c350d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1234,7 +1234,7 @@ const Composer = RestModel.extend({
{ forceSave: this.draftForceSave } { forceSave: this.draftForceSave }
) )
.then((result) => { .then((result) => {
if (result.draft_sequence) { if ("draft_sequence" in result) {
this.set("draftSequence", result.draft_sequence); this.set("draftSequence", result.draft_sequence);
} }
if (result.conflict_user) { if (result.conflict_user) {