ngx-material-entity 15.2.2 → 15.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1372,12 +1372,15 @@ class EntityUtilities {
1372
1372
  res.push(firstTab);
1373
1373
  }
1374
1374
  for (let i = 2; i <= numberOfTabs; i++) {
1375
- const tab = {
1376
- tabName: EntityUtilities.getTabName(entity, i),
1377
- tab: i,
1378
- rows: EntityUtilities.getEntityRows(entity, i, hideOmitForCreate, hideOmitForEdit, additionalOmitValues)
1379
- };
1380
- res.push(tab);
1375
+ const rows = EntityUtilities.getEntityRows(entity, i, hideOmitForCreate, hideOmitForEdit, additionalOmitValues);
1376
+ if (rows.length) {
1377
+ const tab = {
1378
+ tabName: EntityUtilities.getTabName(entity, i),
1379
+ tab: i,
1380
+ rows: rows
1381
+ };
1382
+ res.push(tab);
1383
+ }
1381
1384
  }
1382
1385
  return res;
1383
1386
  }