diff --git a/plugins/view-resources/src/components/list/ListCategory.svelte b/plugins/view-resources/src/components/list/ListCategory.svelte index 275ff166a2..3f82f9861c 100644 --- a/plugins/view-resources/src/components/list/ListCategory.svelte +++ b/plugins/view-resources/src/components/list/ListCategory.svelte @@ -349,6 +349,27 @@ } const listItems: ListItem[] = [] + + function getDocItemModel (docClass: Ref>): AttributeModel[] { + let res = itemModels.get(docClass) + if (res) { + return res + } + + try { + for (const ac of client.getHierarchy().getAncestors(docClass)) { + res = itemModels.get(ac) + + if (res) { + return res + } + } + } catch (e) { + // suppress + } + + return [] + }