From 16ddb196c364e059ee14a89cd0a29ecb3eef508a Mon Sep 17 00:00:00 2001 From: Nemanja Date: Wed, 25 Nov 2020 13:31:01 +0100 Subject: [PATCH] Duplicate Events Filter --- widget/app.services.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/widget/app.services.js b/widget/app.services.js index 61edcd2..bb03606 100644 --- a/widget/app.services.js +++ b/widget/app.services.js @@ -123,6 +123,16 @@ for (var i = 0; ia.findIndex(t=>( + t.UID === v.UID && + t.SUMMARY === v.SUMMARY && + t.LOCATION === v.LOCATION && + t.startDate === v.startDate && + t.endDate === v.endDate && + t.DESCRIPTION === v.DESCRIPTION))===i); + //duplicated events - filter + deferred.resolve(finalResults); console.log("end getFeedEvents: " + new Date()); });