From 10684cf1cf2e0769b62834741d53caa5f7e1e757 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Thu, 23 May 2019 10:10:53 +0200 Subject: [PATCH] Allow stored filter without options Fixes an issue where stored filters where considered to be wrong if their set of options was empty --- .../src/app/core/ui-services/base-filter-list.service.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/app/core/ui-services/base-filter-list.service.ts b/client/src/app/core/ui-services/base-filter-list.service.ts index 2fec27228..8efd0700e 100644 --- a/client/src/app/core/ui-services/base-filter-list.service.ts +++ b/client/src/app/core/ui-services/base-filter-list.service.ts @@ -150,12 +150,7 @@ export abstract class BaseFilterListService { return storedFilter.every(filter => { // Interfaces do not exist at runtime. Manually check if the // Required information of the interface are present - return ( - filter.hasOwnProperty('options') && - filter.hasOwnProperty('property') && - filter.options.length && - !!filter.property - ); + return filter.hasOwnProperty('options') && filter.hasOwnProperty('property') && !!filter.property; }); } else { return false;