FIX: Don't save placeholder text only if description is empty
This commit is contained in:
parent
2f0400a7e0
commit
feb8a1ce0f
|
@ -58,7 +58,7 @@ export default Ember.Controller.extend({
|
||||||
save() {
|
save() {
|
||||||
const self = this;
|
const self = this;
|
||||||
this.set('loading', true);
|
this.set('loading', true);
|
||||||
this.set('selectedItem.description', '');
|
if (this.get('selectedItem.description') === '') this.set('selectedItem.description', '');
|
||||||
return this.get('selectedItem').save().then(function() {
|
return this.get('selectedItem').save().then(function() {
|
||||||
const query = self.get('selectedItem');
|
const query = self.get('selectedItem');
|
||||||
query.markNotDirty();
|
query.markNotDirty();
|
||||||
|
|
Loading…
Reference in New Issue