UBERF-5986: Upgrade fixes (#4957)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-03-14 11:24:25 +06:00
committed by GitHub
parent 768d57348b
commit 27e46ef3ae
7 changed files with 167 additions and 27 deletions
@@ -42,8 +42,10 @@
}
function getArrayName (type: Type<any>): IntlString | undefined {
const ref = (type as ArrOf<any>).of
const res = client.getHierarchy().getClass((ref as RefTo<Doc>).to)
return res?.label
if (client.getHierarchy().hasClass((ref as RefTo<Doc>).to)) {
const res = client.getHierarchy().getClass((ref as RefTo<Doc>).to)
return res?.label
}
}
</script>