Hide hidden filter (#2669)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-02-21 13:03:49 +06:00 committed by GitHub
parent 0280677f03
commit d9df953c9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@
function buildFilterFromKey (_class: Ref<Class<Doc>>, key: string): KeyFilter | undefined {
const attribute = hierarchy.getAttribute(_class, key)
if (attribute.hidden) return
return buildFilterKey(hierarchy, _class, key, attribute)
}