diff options
Diffstat (limited to 'web/src/js/components/MainView.jsx')
-rw-r--r-- | web/src/js/components/MainView.jsx | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/web/src/js/components/MainView.jsx b/web/src/js/components/MainView.jsx index b0bbf70e..d7d1ebeb 100644 --- a/web/src/js/components/MainView.jsx +++ b/web/src/js/components/MainView.jsx @@ -1,6 +1,5 @@ import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' -import { Query } from '../actions.js' import Splitter from './common/Splitter' import FlowTable from './FlowTable' import FlowView from './FlowView' @@ -14,19 +13,6 @@ class MainView extends Component { sort: PropTypes.object, } - /** - * @todo move to actions - * @todo replace with mapStateToProps - */ - componentWillReceiveProps(nextProps) { - if (nextProps.location.query[Query.SEARCH] !== nextProps.filter) { - this.props.updateFilter(nextProps.location.query[Query.SEARCH], false) - } - if (nextProps.location.query[Query.HIGHLIGHT] !== nextProps.highlight) { - this.props.updateHighlight(nextProps.location.query[Query.HIGHLIGHT], false) - } - } - render() { const { flows, selectedFlow, highlight } = this.props return ( @@ -66,9 +52,5 @@ export default connect( updateFilter, updateHighlight, updateFlow: flowsActions.update, - }, - undefined, - { - withRef: true } )(MainView) |