Merge pull request #4735 from tsiegleauq/allow-stored-filter-with-empty-options

Allow stored filter without options
This commit is contained in:
Emanuel Schütze 2019-05-23 11:12:27 +02:00 committed by GitHub
commit 61057a6e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,12 +150,7 @@ export abstract class BaseFilterListService<V extends BaseViewModel> {
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;