diff --git a/web/src/App.js b/web/src/App.js index 571797a..b3bd1fe 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -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;