groups.forEach((group) => {
return Object.keys(group).forEach((key) => {
if (key === 'attributes_count' || key === 'templates_count') {
parseInt(group[key]);
}
if (!group[key]) {
delete group[key];
}
});
}); groups.forEach((group) => {
return Object.keys(group).forEach((key) => {
if (key === 'attributes_count' || key === 'templates_count') {
parseInt(group[key]);
}
if (!group[key]) {
delete group[key];
}
});
});