Revert changes
This commit is contained in:
@@ -126,6 +126,7 @@ class App extends Component {
|
|||||||
|
|
||||||
handleDeleteIntentClick(selectedIntent){
|
handleDeleteIntentClick(selectedIntent){
|
||||||
let id = -1;
|
let id = -1;
|
||||||
|
//TODO : Change comparsion method ! Same object with different proeprty sorting will not be same string
|
||||||
this.state.allIntents.map((intent,index)=>{
|
this.state.allIntents.map((intent,index)=>{
|
||||||
if ((id===-1) && (JSON.stringify(selectedIntent)===JSON.stringify(intent)))
|
if ((id===-1) && (JSON.stringify(selectedIntent)===JSON.stringify(intent)))
|
||||||
id = index;
|
id = index;
|
||||||
|
|||||||
Reference in New Issue
Block a user