Skip to content

Commit

Permalink
Merge pull request #176 from datasci4health/development
Browse files Browse the repository at this point in the history
feat (inplace editor): removing empty options
  • Loading branch information
santanche authored Aug 14, 2020
2 parents a57a250 + e166973 commit caed811
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/adonisjs/public/dccs/edit/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,10 @@ class Properties {
let i = 0;
for (let item in previous) {
if (i == this._item) {
previous[item].message = field.value.trim();
objProperty[this._itemEdit.edit] = previous[item];
if (this._itemEdit.edit.trim().length > 0) {
previous[item].message = field.value.trim();
objProperty[this._itemEdit.edit] = previous[item];
}
} else
objProperty[item] = previous[item];
i++;
Expand Down

0 comments on commit caed811

Please sign in to comment.