Remove linter errors

pull/10616/head
Kevin Fitzpatrick 2016-10-17 11:23:54 -07:00 committed by Jade McGough
parent 25738d405f
commit dcd017413c
1 changed files with 2 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import AlertsTable from '../components/AlertsTable';
import {getAlerts} from '../apis';
// Kevin: because we were getting strange errors saying
// "Failed prop type: Required prop `source` was not specified in `AlertsApp`."
// "Failed prop type: Required prop `source` was not specified in `AlertsApp`."
// Tim and I decided to make the source and addFlashMessage props not required.
// FIXME: figure out why that wasn't working
const AlertsApp = React.createClass({
@ -21,16 +21,10 @@ const AlertsApp = React.createClass({
getInitialState() {
return {
alerts: [],
alerts: getAlerts(),
};
},
componentDidMount() {
this.setState(
{ alerts:getAlerts() }
);
},
render() {
return (
// I stole this from the Hosts page.