FIX: Don't save placeholder text if description is empty

This commit is contained in:
Rishabh Nambiar 2018-08-24 12:43:18 +05:30
parent 11aef0495b
commit 2f0400a7e0
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ export default Ember.Controller.extend({
save() {
const self = this;
this.set('loading', true);
this.set('selectedItem.description', '');
return this.get('selectedItem').save().then(function() {
const query = self.get('selectedItem');
query.markNotDirty();