@bento-core/paginated-table 1.0.1-ccdihub.48 → 1.0.1-ccdihub.49
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.
|
@@ -72,30 +72,7 @@ const AddAllFilesComponent = props => {
|
|
|
72
72
|
variables: activeFilters,
|
|
73
73
|
query: addFileQuery
|
|
74
74
|
});
|
|
75
|
-
|
|
76
|
-
// const data = response[responseKeys[0]];
|
|
77
|
-
// if (data && data.length > 0) {
|
|
78
|
-
// const isArray = Array.isArray(data[0][responseKeys[1]]);
|
|
79
|
-
// const ids = data.reduce((acc, id) => {
|
|
80
|
-
// if (id && id[responseKeys[1]]) {
|
|
81
|
-
// // if object convert to array
|
|
82
|
-
// const items = isArray ? id[responseKeys[1]] : [id[responseKeys[1]]];
|
|
83
|
-
// acc.push(...items);
|
|
84
|
-
// }
|
|
85
|
-
// return acc;
|
|
86
|
-
// }, []);
|
|
87
|
-
// if (ids.length > 1000) {
|
|
88
|
-
// setAlterDisplay(true);
|
|
89
|
-
// } else {
|
|
90
|
-
// setOpen(true);
|
|
91
|
-
// setAddFilesId(ids);
|
|
92
|
-
// }
|
|
93
|
-
// } else {
|
|
94
|
-
// setOpen(true);
|
|
95
|
-
// }
|
|
96
|
-
// return [];
|
|
97
|
-
// });
|
|
98
|
-
if (fileCount <= 200) {
|
|
75
|
+
if (fileCount <= 6000) {
|
|
99
76
|
fileIds().then(response => {
|
|
100
77
|
const data = response[responseKeys[0]];
|
|
101
78
|
if (data && data.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/paginated-table",
|
|
3
|
-
"version": "1.0.1-ccdihub.
|
|
3
|
+
"version": "1.0.1-ccdihub.49",
|
|
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",
|
|
@@ -65,30 +65,7 @@ const AddAllFilesComponent = (props) => {
|
|
|
65
65
|
variables: activeFilters,
|
|
66
66
|
query: addFileQuery,
|
|
67
67
|
});
|
|
68
|
-
|
|
69
|
-
// const data = response[responseKeys[0]];
|
|
70
|
-
// if (data && data.length > 0) {
|
|
71
|
-
// const isArray = Array.isArray(data[0][responseKeys[1]]);
|
|
72
|
-
// const ids = data.reduce((acc, id) => {
|
|
73
|
-
// if (id && id[responseKeys[1]]) {
|
|
74
|
-
// // if object convert to array
|
|
75
|
-
// const items = isArray ? id[responseKeys[1]] : [id[responseKeys[1]]];
|
|
76
|
-
// acc.push(...items);
|
|
77
|
-
// }
|
|
78
|
-
// return acc;
|
|
79
|
-
// }, []);
|
|
80
|
-
// if (ids.length > 1000) {
|
|
81
|
-
// setAlterDisplay(true);
|
|
82
|
-
// } else {
|
|
83
|
-
// setOpen(true);
|
|
84
|
-
// setAddFilesId(ids);
|
|
85
|
-
// }
|
|
86
|
-
// } else {
|
|
87
|
-
// setOpen(true);
|
|
88
|
-
// }
|
|
89
|
-
// return [];
|
|
90
|
-
// });
|
|
91
|
-
if (fileCount <= 200) {
|
|
68
|
+
if (fileCount <= 6000) {
|
|
92
69
|
fileIds().then((response) => {
|
|
93
70
|
const data = response[responseKeys[0]];
|
|
94
71
|
if (data && data.length > 0) {
|