Show empty groups without category fix (#2605)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-02-08 20:03:34 +06:00 committed by GitHub
parent da7ea2a734
commit 747b39ca88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,7 @@ export async function showEmptyGroups (
): Promise<any[] | undefined> {
const client = getClient()
const hierarchy = client.getHierarchy()
if (key === noCategory) return
const attr = hierarchy.getAttribute(_class, key)
if (attr === undefined) return
const { attrClass } = getAttributePresenterClass(hierarchy, attr)