Merge pull request #4735 from tsiegleauq/allow-stored-filter-with-empty-options
Allow stored filter without options
This commit is contained in:
commit
61057a6e09
@ -150,12 +150,7 @@ export abstract class BaseFilterListService<V extends BaseViewModel> {
|
|||||||
return storedFilter.every(filter => {
|
return storedFilter.every(filter => {
|
||||||
// Interfaces do not exist at runtime. Manually check if the
|
// Interfaces do not exist at runtime. Manually check if the
|
||||||
// Required information of the interface are present
|
// Required information of the interface are present
|
||||||
return (
|
return filter.hasOwnProperty('options') && filter.hasOwnProperty('property') && !!filter.property;
|
||||||
filter.hasOwnProperty('options') &&
|
|
||||||
filter.hasOwnProperty('property') &&
|
|
||||||
filter.options.length &&
|
|
||||||
!!filter.property
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user