@nokecy/qc-ui 0.3.2 → 0.3.3

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.
@@ -277,9 +277,11 @@ function AgGridPlus(props) {
277
277
  };
278
278
  }, [queryFilter, JSON.stringify(gridParams), JSON.stringify(sortColumn)]);
279
279
  var colDefs = (0, _react.useMemo)(function () {
280
- return _react.default.Children.map(children, function (child, index) {
280
+ var columnProps = _react.default.Children.map(children, function (child, index) {
281
281
  return child.props;
282
- }).filter(function (x) {
282
+ });
283
+
284
+ return columnProps ? [] : columnProps.filter(function (x) {
283
285
  return !x.hideInTable;
284
286
  });
285
287
  }, []);
@@ -250,9 +250,10 @@ function AgGridPlus(props) {
250
250
  };
251
251
  }, [queryFilter, JSON.stringify(gridParams), JSON.stringify(sortColumn)]);
252
252
  var colDefs = useMemo(function () {
253
- return React.Children.map(children, function (child, index) {
253
+ var columnProps = React.Children.map(children, function (child, index) {
254
254
  return child.props;
255
- }).filter(function (x) {
255
+ });
256
+ return columnProps ? [] : columnProps.filter(function (x) {
256
257
  return !x.hideInTable;
257
258
  });
258
259
  }, []);