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

This commit is contained in:
Rishabh Nambiar 2018-08-25 23:02:43 +05:30
parent 2f0400a7e0
commit feb8a1ce0f
1 changed files with 1 additions and 1 deletions

View File

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