Merge pull request #4688 from MaximilianKrambach/multiFilter

fix number array filter options
This commit is contained in:
Emanuel Schütze 2019-05-10 11:32:28 +02:00 committed by GitHub
commit 643bab111c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;