From 23b74265af6cca5f85fefd445a5f397b76808501 Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Mon, 12 Aug 2019 17:00:12 +0200 Subject: Fixed problem with deleting the elements. The deletion of elements removes correct relation, not all. Issue-ID: SDC-2506 Signed-off-by: Krystian Kedron Change-Id: Ief4a9bb23d6e2c357379ca3dc2c871590ead5e69 --- app/comp-fe/composition.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/comp-fe/composition.js b/app/comp-fe/composition.js index 0e64e68..0323917 100644 --- a/app/comp-fe/composition.js +++ b/app/comp-fe/composition.js @@ -1971,11 +1971,8 @@ var CompositionEditor = function () { function(resp) { });*/ - curcomp.relations = curcomp - .relations - .filter(function (r) { - r.rid != d.name - }); + curcomp.relations = curcomp.relations.filter(r => r.rid !== d.name); + /*xhrpost("/composition.savecomp?cid="+cid, curcomp, function(resp) { });*/ -- cgit