editor: error in sidepanel child remover

This commit is contained in:
jean-emmanuel 2018-10-17 15:51:21 +02:00
parent 3a35d5a0a1
commit 690a031c3d

View file

@ -147,7 +147,6 @@ module.exports = function editField(editor, widget, propName, defaultValue){
case 'remove':
var index = DOM.index(e.target.closest('li'))
widget.children.splice(index,1)
widget.props[propName].splice(index,1)
updateWidget(widget, {removedIndexes: [index] })
editor.pushHistory({removedIndexes: [index] })