ywana-core8 0.0.234 → 0.0.238

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.
@@ -4826,13 +4826,15 @@ var TableEditor = function TableEditor(props) {
4826
4826
 
4827
4827
  function renderGroupLabel(groupName) {
4828
4828
  var grouper = schema[groupBy];
4829
+ if (!groupName || !grouper) return "";
4829
4830
 
4830
4831
  if (grouper.options) {
4831
4832
  var options = CHECK['isFunction'](grouper.options) ? grouper.options() : grouper.options;
4832
4833
  var option = options.find(function (option) {
4833
4834
  return option.value === groupName;
4834
4835
  });
4835
- return option.label;
4836
+ console.log(groupName, options, option);
4837
+ return option ? option.label : groupName;
4836
4838
  } else {
4837
4839
  return groupName;
4838
4840
  }
@@ -4907,8 +4909,8 @@ var TableEditor = function TableEditor(props) {
4907
4909
  return /*#__PURE__*/React.createElement(Fragment, {
4908
4910
  key: groupName
4909
4911
  }, /*#__PURE__*/React.createElement(Header, {
4910
- title: groupName
4911
- }, renderGroupLabel(groupName), /*#__PURE__*/React.createElement("span", {
4912
+ title: renderGroupLabel(groupName)
4913
+ }, /*#__PURE__*/React.createElement("span", {
4912
4914
  className: "size"
4913
4915
  }, groupSize)), /*#__PURE__*/React.createElement(DataTable, _extends({}, table, {
4914
4916
  onRowSelection: select,