mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 19:44:59 +03:00
UBER-282 Filters are broken for mixins (#3288)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
9e0a69d8be
commit
c51cbaffa0
@ -35,7 +35,7 @@
|
|||||||
function getFilters (_class: Ref<Class<Doc>>, mixin: ClassFilters): KeyFilter[] {
|
function getFilters (_class: Ref<Class<Doc>>, mixin: ClassFilters): KeyFilter[] {
|
||||||
if (mixin.filters === undefined) return []
|
if (mixin.filters === undefined) return []
|
||||||
const filters = mixin.filters.map((p) => {
|
const filters = mixin.filters.map((p) => {
|
||||||
return typeof p === 'string' ? buildFilterFromKey(_class, p) : buildFilterFromPreset(p)
|
return typeof p === 'string' ? buildFilterFromKey(mixin._id, p) : buildFilterFromPreset(p)
|
||||||
})
|
})
|
||||||
const result: KeyFilter[] = []
|
const result: KeyFilter[] = []
|
||||||
for (const filter of filters) {
|
for (const filter of filters) {
|
||||||
|
Loading…
Reference in New Issue
Block a user