FIX: creating new badge is failing on empty SQL query (#7837)

This commit is contained in:
Arpit Jalan 2019-07-02 15:12:53 +05:30
parent b549cab2ad
commit 867eebb55e

View File

@ -17,7 +17,7 @@ export default Ember.Component.extend({
@observes("content") @observes("content")
contentChanged() { contentChanged() {
if (this._editor && !this._skipContentChangeEvent) { if (this._editor && !this._skipContentChangeEvent && this.content) {
this._editor.getSession().setValue(this.content); this._editor.getSession().setValue(this.content);
} }
}, },