Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
expand(expanded) {
this.setState({
treeData: toggleExpandedForAll({
treeData: this.state.treeData,
expanded,
}),
});
}
expand(expanded) {
const newTreeData = toggleExpandedForAll({
treeData: this.state.treeData,
expanded,
});
if (this._editor) {
this._editor.set(newTreeData);
this.setState({
treeData: newTreeData,
});
};
}
expand(expanded) {
this.setState({
treeData: toggleExpandedForAll({
pagesModalIsOpen: false,
loModalIsOpen: false,
activitiesModalIsOpen : false,
treeData: this.state.treeData,
expanded,
}),
});
}
expand(expanded) {
this.setState({
treeData: toggleExpandedForAll({
treeData: this.state.treeData,
expanded,
}),
});
}
this.setState(prevState => ({
treeData: toggleExpandedForAll({
treeData: prevState.treeData,
expanded,
}),
}));
};
const toggleExpand = (expanded) => {
setTreeData(toggleExpandedForAll({
treeData: treeData,
expanded: expanded
}));
}
expand(expanded) {
this.setState({
treeData: toggleExpandedForAll({
treeData: this.state.treeData,
expanded,
}),
});
}