FIX: variable is different from key (#7512)

This commit is contained in:
Joffrey JAFFEUX 2019-05-09 10:03:33 +02:00 committed by GitHub
parent 88249932a0
commit 977ffa20f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -948,7 +948,7 @@ const Composer = RestModel.extend({
this._clearingStatus = null;
}
const data = this.getProperties(
let data = this.getProperties(
"reply",
"action",
"title",
@ -957,13 +957,14 @@ const Composer = RestModel.extend({
"archetypeId",
"whisper",
"metaData",
"usernames",
"composerTime",
"typingTime",
"tags",
"noBump"
);
data = Object.assign(data, { usernames: this.targetUsernames });
if (this.get("post.id") && !Ember.isEmpty(this.originalText)) {
data.originalText = this.originalText;
}