aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/Search/Response.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/src/components/Search/Response.js b/src/web/src/components/Search/Response.js
index 74b96b93..375a7b43 100644
--- a/src/web/src/components/Search/Response.js
+++ b/src/web/src/components/Search/Response.js
@@ -32,14 +32,13 @@ class Response extends Component {
}
componentDidUpdate = (prevProps) => {
- if (this.props.response !== prevProps.response) {
+ if (JSON.stringify(this.props.response) !== JSON.stringify(prevProps.response)) {
this.setState({ tree: buildTree(this.props.response) });
}
}
onFileSelectionChange = (file, state) => {
file.selected = state;
- console.log(this.state.tree);
this.setState({ tree: this.state.tree, downloadRequest: undefined, downloadError: '' })
}