editor: missing widget removal

This commit is contained in:
jean-emmanuel 2018-10-17 14:20:50 +02:00
parent 87926a2147
commit f9d5e4b93a

View file

@ -61,7 +61,7 @@ function updateWidget(widget, options={}) {
// remove old widgets
var removedWidgets = reuseChildren ?
removedChildren.map(x => x.getAllChildren()).concat(widget) :
removedChildren.map(x => x.getAllChildren().concat(x)).concat(widget) :
widget.getAllChildren().concat(widget)
widgetManager.removeWidgets(removedWidgets)