1
0
mirror of synced 2026-09-11 04:49:39 +00:00

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
@@ -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();