Skip to content

Commit

Permalink
Merge pull request #155 from wonknu/bug_block_each
Browse files Browse the repository at this point in the history
fix: first block each is not removed on click delete
  • Loading branch information
gregorybesson committed Feb 27, 2017
2 parents 2349e0a + c571a6d commit b24e712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/public/abecms/scripts/modules/EditorSave.js
Expand Up @@ -99,6 +99,7 @@ export default class EditorSave {
}
if(emptyObject === 0) {
delete this._json.data[obj][index]
if(this._json.data[obj].length == 1) delete this._json.data[obj]
}
} else {
if (input.getAttribute('data-autocomplete') === 'true' || input.getAttribute('data-multiple') === 'multiple') {
Expand Down

0 comments on commit b24e712

Please sign in to comment.