Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public render() {
const path = new BreadcrumbPath(demoMutableTreeDataProvider);
DragDropLayerManager.registerTypeLayer(TreeDragTypes.Parent, ParentDragLayer);
DragDropLayerManager.registerTypeLayer(TreeDragTypes.Child, ChildDragLayer);
let objectTypes: Array = [];
if (treeDropProps.objectTypes) {
if (typeof treeDropProps.objectTypes !== "function")
objectTypes = treeDropProps.objectTypes;
else
objectTypes = treeDropProps.objectTypes();
}
if (this.state.checked)
objectTypes.push(TableDragTypes.Row);
const dragProps = treeDragProps;
const dropProps = {