Skip to content
Snippets Groups Projects
Commit 6905704f authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add an error boundary for monitors, now that they do a lot.

parent a0493d4a
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,8 @@ import PropTypes from 'prop-types'; ...@@ -5,6 +5,8 @@ import PropTypes from 'prop-types';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import {moveMonitorRect} from '../reducers/monitor-layout'; import {moveMonitorRect} from '../reducers/monitor-layout';
import errorBoundaryHOC from '../lib/error-boundary-hoc.jsx';
import MonitorListComponent from '../components/monitor-list/monitor-list.jsx'; import MonitorListComponent from '../components/monitor-list/monitor-list.jsx';
class MonitorList extends React.Component { class MonitorList extends React.Component {
...@@ -37,7 +39,9 @@ const mapDispatchToProps = dispatch => ({ ...@@ -37,7 +39,9 @@ const mapDispatchToProps = dispatch => ({
moveMonitorRect: (id, x, y) => dispatch(moveMonitorRect(id, x, y)) moveMonitorRect: (id, x, y) => dispatch(moveMonitorRect(id, x, y))
}); });
export default connect( export default errorBoundaryHOC('Monitors')(
mapStateToProps, connect(
mapDispatchToProps mapStateToProps,
)(MonitorList); mapDispatchToProps
)(MonitorList)
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment