From 99fa807041a9bdd77913b884c3e5be8fb4217da1 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Fri, 8 Nov 2019 12:11:01 +0100
Subject: [PATCH] FEAT #11750 TIME 0:10 fix doctype filter

---
 src/frontend/app/list/filters/filters-tool.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/app/list/filters/filters-tool.component.ts b/src/frontend/app/list/filters/filters-tool.component.ts
index 9f6365f6c13..8aa7905da1d 100644
--- a/src/frontend/app/list/filters/filters-tool.component.ts
+++ b/src/frontend/app/list/filters/filters-tool.component.ts
@@ -270,7 +270,7 @@ export class FiltersToolComponent implements OnInit {
                 });
 
                 data.doctypes.forEach((element: any) => {
-                    if (this.listProperties.doctypes.map((doctype: any) => (doctype.id)).indexOf(element.id) === -1 && this.listProperties.doctypes == 0) {
+                    if (this.listProperties.doctypes.map((doctype: any) => (doctype.id)).indexOf(element.id) === -1) {
                         this.stateGroups[5].names.push(
                             {
                                 id: 'doctypes',
-- 
GitLab