From 1b04e72b985f8a7263f590a64ce7dd2351978c8a Mon Sep 17 00:00:00 2001 From: GotPPay Date: Mon, 15 Jan 2018 14:52:34 +0100 Subject: [PATCH] Revert changes --- web/src/App.js | 1 + 1 file changed, 1 insertion(+) 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;