fix number array filter options

This commit is contained in:
Maximilian Krambach 2019-05-10 10:46:52 +02:00
parent cef2e45b34
commit 6648f3a17d

View File

@ -209,7 +209,12 @@ export abstract class BaseFilterListService<V extends BaseViewModel> {
}
if (matchingStoreFilter && matchingStoreFilter.options) {
const storedOption = matchingStoreFilter.options.find(
o => typeof o !== 'string' && o.condition === option.condition
o =>
typeof o !== 'string' &&
(o.condition === option.condition ||
(Array.isArray(o.condition) &&
Array.isArray(option.condition) &&
o.label === option.label))
) as OsFilterOption;
if (storedOption) {
option.isActive = storedOption.isActive;