Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
expandedKeys: expandedKeys,
selectedKeys: selectedKeys,
onSelect: _this.onSelect,
onClick: _this.onClick,
onDoubleClick: _this.onDoubleClick,
onExpand: _this.onExpand
}));
};
var defaultExpandAll = props.defaultExpandAll,
defaultExpandParent = props.defaultExpandParent,
expandedKeys = props.expandedKeys,
defaultExpandedKeys = props.defaultExpandedKeys,
children = props.children;
var _convertTreeToEntitie = convertTreeToEntities(children),
keyEntities = _convertTreeToEntitie.keyEntities; // Selected keys
_this.state = {
selectedKeys: props.selectedKeys || props.defaultSelectedKeys || []
}; // Expanded keys
if (defaultExpandAll) {
_this.state.expandedKeys = getFullKeyList(props.children);
} else if (defaultExpandParent) {
_this.state.expandedKeys = conductExpandParent(expandedKeys || defaultExpandedKeys, keyEntities);
} else {
_this.state.expandedKeys = expandedKeys || defaultExpandedKeys;
}
_this.onDebounceExpand = debounce(_this.expandFolderNode, 200, {