Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

remove duplicate statesetter in provider #1458

Benjamin Kinga4e541e6be46
diff --git a/web/js/components/sidebar/provider.js b/web/js/components/sidebar/provider.js
index 2be31f5ed..bc7bc0a43 100644
--- a/web/js/components/sidebar/provider.js
+++ b/web/js/components/sidebar/provider.js
@@ -27,9 +27,6 @@ export class SidebarProvider extends React.Component {
if (!lodashIsEqual(this.state.zotsObject, props.zotsObject)) {
this.setState({ zotsObject: props.zotsObject });
}
- if (!lodashIsEqual(this.state.zotsObject, props.zotsObject)) {
- this.setState({ zotsObject: props.zotsObject });
- }
if (this.state.isMobile !== props.isMobile) {
this.setState({ isMobile: props.isMobile });
}