UBER-282 Filters are broken for mixins (#3288)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-05-30 16:33:39 +06:00 committed by GitHub
parent 9e0a69d8be
commit c51cbaffa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@
function getFilters (_class: Ref<Class<Doc>>, mixin: ClassFilters): KeyFilter[] {
if (mixin.filters === undefined) return []
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[] = []
for (const filter of filters) {