Step 4 #5

Merged
senaduka merged 24 commits from step-4 into master 2018-01-15 14:59:31 +01:00
Showing only changes of commit 1b04e72b98 - Show all commits

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;