Add unique key to endpoints added to alert

pull/2252/head
deniz kusefoglu 2017-09-25 15:47:45 -07:00
parent 42c3b924a1
commit 5b3864041a
1 changed files with 0 additions and 12 deletions

View File

@ -17,10 +17,7 @@ class RuleMessage extends Component {
this.state = {
selectedAlertNodeName: null,
endpointsOnThisAlert: [],
<<<<<<< HEAD
endpointsOfKind: {},
=======
>>>>>>> Add functionality to Dropdown for new alert addition
}
}
@ -37,7 +34,6 @@ class RuleMessage extends Component {
}
handleAddNewAlertEndpoint = selectedItem => {
<<<<<<< HEAD
const {endpointsOnThisAlert, endpointsOfKind} = this.state
const newItemNumbering = _.get(endpointsOfKind, selectedItem.text, 0) + 1
const newItemName = selectedItem.text + newItemNumbering
@ -56,14 +52,6 @@ class RuleMessage extends Component {
}
handleRemoveAlertEndpoint = removedItem => {
console.log(removedItem)
=======
this.setState({
endpointsOnThisAlert: _.concat(
this.state.endpointsOnThisAlert,
selectedItem
),
})
>>>>>>> Add functionality to Dropdown for new alert addition
}
render() {