FIX: default to blank title on open

In production `title` was set to undefined causing a
discrepancy between originalTitle and title

This attempts to work around the issue in the production bundle
This commit is contained in:
Sam Saffron 2020-05-11 18:36:09 +10:00
parent 07b728c5e5
commit b180e6e737
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
1 changed files with 4 additions and 1 deletions

View File

@ -785,7 +785,10 @@ const Composer = RestModel.extend({
});
}
this.set("originalTitle", "");
if (this.get("canEditTitle")) {
this.set("originalTitle", "");
this.set("title", "");
}
if (opts.title) {
this.set("title", opts.title);