Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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, {
leading: true
});
return _this;
}