Revert changes

This commit is contained in:
GotPPay
2018-01-15 14:52:34 +01:00
parent 07857fd2f4
commit 1b04e72b98

View File

@@ -126,6 +126,7 @@ class App extends Component {
handleDeleteIntentClick(selectedIntent){
let id = -1;
//TODO : Change comparsion method ! Same object with different proeprty sorting will not be same string
this.state.allIntents.map((intent,index)=>{
if ((id===-1) && (JSON.stringify(selectedIntent)===JSON.stringify(intent)))
id = index;