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.
@@ -4952,17 +4952,7 @@ var DataTable = /*#__PURE__*/function (_Component) {
4952
4952
  value: function getColumns(ignoreReorderable) {
4953
4953
  var _this2 = this;
4954
4954
 
4955
- var isValidType = function isValidType(type) {
4956
- return type.name === 'Column';
4957
- };
4958
-
4959
- var columns = React__default['default'].Children.toArray(this.props.children).reduce(function (arr, child) {
4960
- var type = child && child.type;
4961
- 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) {
4962
- return isValidType(c.type);
4963
- })))));
4964
- return arr;
4965
- }, []);
4955
+ var columns = React__default['default'].Children.toArray(this.props.children);
4966
4956
 
4967
4957
  if (!columns) {
4968
4958
  return null;