@insticc/react-datagrid-2 1.1.29 → 1.1.31

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.
@@ -44,8 +44,8 @@ var DataGrid = function DataGrid(_ref) {
44
44
  createRows = _ref.createRows,
45
45
  _ref$actions = _ref.actions,
46
46
  actions = _ref$actions === void 0 ? null : _ref$actions,
47
- _ref$filerActions = _ref.filerActions,
48
- filerActions = _ref$filerActions === void 0 ? null : _ref$filerActions,
47
+ _ref$filterActions = _ref.filterActions,
48
+ filterActions = _ref$filterActions === void 0 ? null : _ref$filterActions,
49
49
  _ref$extraActions = _ref.extraActions,
50
50
  extraActions = _ref$extraActions === void 0 ? null : _ref$extraActions,
51
51
  _ref$hasExcelExport = _ref.hasExcelExport,
@@ -334,7 +334,7 @@ var DataGrid = function DataGrid(_ref) {
334
334
  }, propsButton))
335
335
  })
336
336
  }, "extraActions" + idx);
337
- }), (filerActions === null || filerActions === void 0 ? void 0 : filerActions.length) > 0 && filerActions.filter(function (e) {
337
+ }), (filterActions === null || filterActions === void 0 ? void 0 : filterActions.length) > 0 && filterActions.filter(function (e) {
338
338
  return e.visible !== undefined ? e.visible : true;
339
339
  }).map(function (e, idx) {
340
340
  var _ref4 = e || {},
@@ -845,7 +845,7 @@ var DataGrid = function DataGrid(_ref) {
845
845
  });
846
846
  selectData(selectedRows);
847
847
  }
848
- }, [rowSelection, table, hasSubRows, selectData, getSelectedRows]);
848
+ }, [rowSelection]);
849
849
  (0, _react.useEffect)(function () {
850
850
  var rows = table.getRowModel().rows.map(function (r) {
851
851
  return r.original;
@@ -893,7 +893,7 @@ DataGrid.propTypes = {
893
893
  visible: _propTypes["default"].bool
894
894
  })),
895
895
  // array of objects -> each object represents a single data grid action button
896
- filerActions: _propTypes["default"].arrayOf(_propTypes["default"].shape({
896
+ filterActions: _propTypes["default"].arrayOf(_propTypes["default"].shape({
897
897
  name: _propTypes["default"].string,
898
898
  "function": _propTypes["default"].func.isRequired,
899
899
  tooltip: _propTypes["default"].string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insticc/react-datagrid-2",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "files": [