Remove dup code

pull/10616/head
Kevin Fitzpatrick 2016-10-17 11:47:19 -07:00 committed by Jade McGough
parent e83e3e12de
commit 1086b22d60
1 changed files with 0 additions and 5 deletions

View File

@ -30,11 +30,6 @@ const AlertsTable = React.createClass({
this.setFilteredAlerts(newProps.alerts, this.state.searchTerm);
},
filterAlerts(allAlerts, searchTerm) {
const alerts = allAlerts.filter((h) => h.name.search(searchTerm) !== -1);
this.setState({searchTerm, filteredAlerts: alerts});
},
setFilteredAlerts(allAlerts, searchTerm) {
const alerts = allAlerts.filter((h) => h.name.search(searchTerm) !== -1);
this.setState({searchTerm, filteredAlerts: alerts});