mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 23:04:42 +08:00
FIX: creating new badge is failing on empty SQL query (#7837)
This commit is contained in:
parent
b549cab2ad
commit
867eebb55e
|
@ -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