Skip to content

Commit

Permalink
Add whitespace
Browse files Browse the repository at this point in the history
Keep consistent with other parts of the file.
  • Loading branch information
victorlin committed Oct 8, 2024
1 parent 3f8a362 commit 27e5aa8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/tree/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Tree extends React.Component {
}
};
}

setUpAndRenderTreeToo(props, newState) {
/* this.setState(newState) will be run sometime after this returns */
/* modifies newState in place */
Expand All @@ -58,6 +59,7 @@ class Tree extends React.Component {
}
renderTree(this, false, newState.treeToo, props);
}

componentDidMount() {
document.addEventListener('keyup', this.handlekeydownEvent);
if (this.props.tree.loaded) {
Expand All @@ -71,6 +73,7 @@ class Tree extends React.Component {
this.setState(newState); /* this will trigger an unnecessary CDU :( */
}
}

componentDidUpdate(prevProps) {
let newState = {};
let rightTreeUpdated = false;
Expand Down

0 comments on commit 27e5aa8

Please sign in to comment.