keep local group if it still has properties

This commit is contained in:
Mads Rasmussen
2021-08-23 19:29:44 +02:00
parent 6d62d91bf2
commit 72749fd3e2

View File

@@ -323,8 +323,7 @@ function contentTypeHelper(contentTypeResource, dataTypeResource, $filter, $inje
}
// remove group if there are no properties left
if (contentTypeGroup.properties.length > 1) {
//contentType.groups.splice(groupIndex, 1);
if (contentTypeGroup.properties.length > 0) {
groups.push(contentTypeGroup);
}