fix number array filter options
This commit is contained in:
parent
cef2e45b34
commit
6648f3a17d
@ -209,7 +209,12 @@ export abstract class BaseFilterListService<V extends BaseViewModel> {
|
|||||||
}
|
}
|
||||||
if (matchingStoreFilter && matchingStoreFilter.options) {
|
if (matchingStoreFilter && matchingStoreFilter.options) {
|
||||||
const storedOption = matchingStoreFilter.options.find(
|
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;
|
) as OsFilterOption;
|
||||||
if (storedOption) {
|
if (storedOption) {
|
||||||
option.isActive = storedOption.isActive;
|
option.isActive = storedOption.isActive;
|
||||||
|
Loading…
Reference in New Issue
Block a user