ywana-core8 0.0.511 → 0.0.512

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.
package/dist/index.cjs CHANGED
@@ -1814,8 +1814,7 @@ var DataTableCell = function DataTableCell(_ref4) {
1814
1814
  return column.type === TYPES.ENTITY ? /*#__PURE__*/React__default["default"].createElement(EntityCellViewer, {
1815
1815
  id: column.id,
1816
1816
  item: column.item,
1817
- value: cell,
1818
- format: column.format
1817
+ value: cell
1819
1818
  }) : /*#__PURE__*/React__default["default"].createElement("td", {
1820
1819
  key: column.id,
1821
1820
  className: column.id
@@ -1830,16 +1829,14 @@ var DataTableCell = function DataTableCell(_ref4) {
1830
1829
 
1831
1830
  var EntityCellViewer = function EntityCellViewer(_ref5) {
1832
1831
  var item = _ref5.item,
1833
- value = _ref5.value,
1834
- _ref5$format = _ref5.format,
1835
- format = _ref5$format === void 0 ? "" : _ref5$format;
1832
+ value = _ref5.value;
1836
1833
  var fields = Object.values(item).filter(function (field) {
1837
1834
  return field.column === true;
1838
1835
  });
1839
1836
  return fields.map(function (field) {
1840
1837
  var text = value[field.id];
1841
1838
 
1842
- if (format) {
1839
+ if (field.format) {
1843
1840
  switch (format) {
1844
1841
  case FORMATS.COLOR:
1845
1842
  text = /*#__PURE__*/React__default["default"].createElement("input", {