Revert changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user