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 committed by GitHub
parent 0872a1182d
commit ccb3ba509d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
},