From ce53799c623a8ac74631f6fc4ab8fb134bff1cc8 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 17 Jun 2016 21:03:19 -0700 Subject: simplify settings reducer --- web/src/js/components/ProxyApp.jsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'web/src/js/components') diff --git a/web/src/js/components/ProxyApp.jsx b/web/src/js/components/ProxyApp.jsx index 8129b0f0..39cadff5 100644 --- a/web/src/js/components/ProxyApp.jsx +++ b/web/src/js/components/ProxyApp.jsx @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom' import _ from 'lodash' import { connect } from 'react-redux' -import { fetch as fetchSettings } from '../ducks/settings' import Header from './Header' import EventLog from './EventLog' import Footer from './Footer' @@ -50,12 +49,7 @@ class ProxyAppMain extends Component { return _.clone(this.props.location.query) } - componentWillMount() { - this.props.fetchSettings(); - } - /** - * @todo connect websocket here * @todo listen to window's key events */ componentDidMount() { @@ -139,8 +133,5 @@ export default connect( state => ({ showEventLog: state.eventLog.visible, settings: state.settings.settings, - }), - { - fetchSettings, - } + }) )(ProxyAppMain) -- cgit v1.2.3