include inherited groups with local props in server validation index

This commit is contained in:
Mads Rasmussen
2021-08-06 09:25:23 +02:00
parent 39eba15f5e
commit c0902dbf1a

View File

@@ -46,8 +46,8 @@
scope.orderTabs();
// set server validation index
// the server filters out inherited groups when returning the group index
const noInherited = newValue.filter(group => !group.inherited);
// the server filters out inherited groups if they don't have any local properties when returning the group index
const noInherited = newValue.filter(group => !group.inherited || (group.inherited && group.properties.filter(property => !property.inherited).length > 0));
noInherited.forEach((group, index) => {
group.serverValidationIndex = !group.inherited ? index : undefined;