mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
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:
parent
07b728c5e5
commit
b180e6e737
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user