@bento-core/paginated-table 1.0.1-icdc.4 → 1.0.1-icdc.5

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.
@@ -45,11 +45,12 @@ const AddSelectedFilesController = props => {
45
45
  selectedRows = [],
46
46
  dispatch
47
47
  } = context;
48
- const activeFilterItems = applyActiveFilter ? activeFilters : {};
49
- const variables = _objectSpread({
50
- first: 10000,
48
+ const activeFilterItems = applyActiveFilter ? _objectSpread({}, activeFilters) : {};
49
+ const variables = _objectSpread(_objectSpread({
50
+ first: 10000
51
+ }, activeFilterItems), {}, {
51
52
  [dataKey]: selectedRows
52
- }, activeFilterItems);
53
+ });
53
54
  // add selected files id
54
55
  const addSelectedFiles = () => {
55
56
  const fileIds = (0, _WrapperService.getFilesID)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/paginated-table",
3
- "version": "1.0.1-icdc.4",
3
+ "version": "1.0.1-icdc.5",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
@@ -31,11 +31,14 @@ const AddSelectedFilesController = (props) => {
31
31
  dispatch,
32
32
  } = context;
33
33
 
34
- const activeFilterItems = applyActiveFilter ? activeFilters : {};
34
+ const activeFilterItems = applyActiveFilter ? {
35
+ ...activeFilters,
36
+ } : {};
37
+
35
38
  const variables = {
36
39
  first: 10000,
37
- [dataKey]: selectedRows,
38
40
  ...activeFilterItems,
41
+ [dataKey]: selectedRows,
39
42
  };
40
43
  // add selected files id
41
44
  const addSelectedFiles = () => {