editor: fix children dnd sorting in modals

This commit is contained in:
bordun 2020-05-16 19:19:31 +02:00
parent 9aeee0515f
commit 6758fc44cd

View file

@ -52,7 +52,7 @@ class Editor {
this.widgetTree.on('sorted', (event)=>{
var {widget, oldIndex, newIndex} = event,
propName = widget.props.tabs.length ? 'tabs' : 'widgets'
propName = widget.props.tabs && widget.props.tabs.length ? 'tabs' : 'widgets'
if (widget.props[propName].length < 2) return