mirror of
https://github.com/veops/cmdb.git
synced 2025-08-26 04:44:43 +08:00
feat(ui): CI - hide groups without attr
This commit is contained in:
@@ -296,7 +296,7 @@ export default {
|
|||||||
getAttributes() {
|
getAttributes() {
|
||||||
getCITypeGroupById(this.typeId, { need_other: 1 })
|
getCITypeGroupById(this.typeId, { need_other: 1 })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.attributeGroups = res
|
this.attributeGroups = (res || []).filter((group) => group?.attributes?.length)
|
||||||
|
|
||||||
this.handleReferenceAttr()
|
this.handleReferenceAttr()
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user