editor: fix children dnd sorting in modals
This commit is contained in:
parent
9aeee0515f
commit
6758fc44cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue