mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user