From 295db40ef9b3a5360e47ddecd3f35f25b2f079ca Mon Sep 17 00:00:00 2001 From: brantje Date: Tue, 20 Sep 2016 18:48:40 +0200 Subject: [PATCH] Fix credentials double appearing --- js/app/filters/tagfilter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/app/filters/tagfilter.js b/js/app/filters/tagfilter.js index bd99d0b8..1ee00496 100644 --- a/js/app/filters/tagfilter.js +++ b/js/app/filters/tagfilter.js @@ -18,7 +18,9 @@ angular.module('passmanApp') for (var ct = 0; ct < c.tags_raw.length; ct++) { var t = c.tags_raw[ct]; if(tags.indexOf(t.text) != -1){ - _credentials.push(c); + if(_credentials.indexOf(c) === -1){ + _credentials.push(c); + } } } }