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.
@@ -4943,17 +4943,7 @@ var DataTable = /*#__PURE__*/function (_Component) {
4943
4943
  value: function getColumns(ignoreReorderable) {
4944
4944
  var _this2 = this;
4945
4945
 
4946
- var isValidType = function isValidType(type) {
4947
- return type.name === 'Column';
4948
- };
4949
-
4950
- var columns = React.Children.toArray(this.props.children).reduce(function (arr, child) {
4951
- var type = child && child.type;
4952
- type && (isValidType(type) ? arr.push(child) : type.toString() === 'Symbol(react.fragment)' && (arr = [].concat(_toConsumableArray(arr), _toConsumableArray(React.Children.toArray(child.props.children).filter(function (c) {
4953
- return isValidType(c.type);
4954
- })))));
4955
- return arr;
4956
- }, []);
4946
+ var columns = React.Children.toArray(this.props.children);
4957
4947
 
4958
4948
  if (!columns) {
4959
4949
  return null;