primereact 7.0.0-rc.1 → 7.0.0-rc.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primereact",
3
- "version": "7.0.0-rc.1",
3
+ "version": "7.0.0-rc.2",
4
4
  "homepage": "https://www.primefaces.org/primereact",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24071,17 +24071,7 @@ var DataTable = /*#__PURE__*/function (_Component) {
24071
24071
  value: function getColumns(ignoreReorderable) {
24072
24072
  var _this2 = this;
24073
24073
 
24074
- var isValidType = function isValidType(type) {
24075
- return type.name === 'Column';
24076
- };
24077
-
24078
- var columns = React__default['default'].Children.toArray(this.props.children).reduce(function (arr, child) {
24079
- var type = child && child.type;
24080
- type && (isValidType(type) ? arr.push(child) : type.toString() === 'Symbol(react.fragment)' && (arr = [].concat(_toConsumableArray(arr), _toConsumableArray(React__default['default'].Children.toArray(child.props.children).filter(function (c) {
24081
- return isValidType(c.type);
24082
- })))));
24083
- return arr;
24084
- }, []);
24074
+ var columns = React__default['default'].Children.toArray(this.props.children);
24085
24075
 
24086
24076
  if (!columns) {
24087
24077
  return null;