editor: error in sidepanel child remover

This commit is contained in:
jean-emmanuel 2018-10-17 15:51:21 +02:00
parent a750083b18
commit a4fb88ee70

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] })