fixed drag and drop issue
This commit is contained in:
@@ -18,7 +18,7 @@ function transformWidgets(widgets, widgetRefs, isTopLevel=true) {
|
||||
isTopLevel: isTopLevel,
|
||||
widgetRef: widgetRefs.current[widget.id],
|
||||
children: widget.children.length > 0 ? transformWidgets(widget.children, widgetRefs, false) : []
|
||||
}));
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,13 @@ function TreeviewContainer() {
|
||||
|
||||
</Tree>
|
||||
|
||||
{
|
||||
Object.keys(transformedContent || {}).length === 0 &&
|
||||
<div className="tw-text-sm tw-place-content-center">
|
||||
Start adding widgets to view it in tree view
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user