From ad6ac9b2b8d136e3eaeb0b4d89e9cd7b7438d1c8 Mon Sep 17 00:00:00 2001 From: bordun Date: Sat, 16 May 2020 19:19:31 +0200 Subject: [PATCH] editor: fix children dnd sorting in modals --- src/client/editor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/editor/index.js b/src/client/editor/index.js index d8802e5d..78026644 100644 --- a/src/client/editor/index.js +++ b/src/client/editor/index.js @@ -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