ywana-core8 0.0.213 → 0.0.214

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.
@@ -1331,9 +1331,10 @@ var DataTable = function DataTable(props) {
1331
1331
  var id = _ref.id,
1332
1332
  label = _ref.label,
1333
1333
  type = _ref.type,
1334
+ item = _ref.item,
1334
1335
  sortable = _ref.sortable;
1335
1336
 
1336
- var _ref2 = type === TYPES.ENTITY ? [1, 3] : [2, 1],
1337
+ var _ref2 = type === TYPES.ENTITY ? [1, Object.keys(item).length] : [2, 1],
1337
1338
  rowspan = _ref2[0],
1338
1339
  colspan = _ref2[1];
1339
1340
 
@@ -1359,7 +1360,7 @@ var DataTable = function DataTable(props) {
1359
1360
  var item = column.item;
1360
1361
  var fields = item ? Object.values(item) : [];
1361
1362
  return fields.filter(function (field) {
1362
- return !field.column;
1363
+ return field.column === true;
1363
1364
  }).map(function (field) {
1364
1365
  return /*#__PURE__*/React.createElement("th", null, field.label);
1365
1366
  });