mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +08:00
FIX: creating new badge is failing on empty SQL query (#7837)
This commit is contained in:
parent
0872a1182d
commit
ccb3ba509d
|
@ -17,7 +17,7 @@ export default Ember.Component.extend({
|
|||
|
||||
@observes("content")
|
||||
contentChanged() {
|
||||
if (this._editor && !this._skipContentChangeEvent) {
|
||||
if (this._editor && !this._skipContentChangeEvent && this.content) {
|
||||
this._editor.getSession().setValue(this.content);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user