@bento-core/paginated-table 1.0.1-ccdihub.53 → 1.0.1-ccdihub.55
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.
|
@@ -83,8 +83,6 @@ const AddAllFilesComponent = props => {
|
|
|
83
83
|
query: addFileQuery
|
|
84
84
|
});
|
|
85
85
|
const cartCount = cartFiles.length;
|
|
86
|
-
console.log('!!!!!cartCount:', cartCount);
|
|
87
|
-
console.log('!!!!!cartFiles:', cartFiles);
|
|
88
86
|
if (fileCount <= 6000 && cartCount < 6000) {
|
|
89
87
|
fileIds().then(response => {
|
|
90
88
|
const data = response[responseKeys[0]];
|
|
@@ -98,20 +96,19 @@ const AddAllFilesComponent = props => {
|
|
|
98
96
|
}
|
|
99
97
|
return acc;
|
|
100
98
|
}, []);
|
|
101
|
-
console.log('!!!!!!ids:', ids);
|
|
102
99
|
if (cartCount + fileCount <= 6000) {
|
|
100
|
+
setOpen(true);
|
|
103
101
|
setAddFilesId(ids);
|
|
104
102
|
} else {
|
|
105
103
|
const duplicate = checkDuplicate(cartFiles, ids);
|
|
106
|
-
console.log('!!!duplicate:', duplicate);
|
|
107
104
|
if (cartCount + fileCount - duplicate <= 6000) {
|
|
105
|
+
setOpen(true);
|
|
108
106
|
setAddFilesId(ids);
|
|
109
107
|
} else {
|
|
110
108
|
setAlterDisplay(true);
|
|
111
109
|
}
|
|
112
110
|
}
|
|
113
111
|
}
|
|
114
|
-
setOpen(true);
|
|
115
112
|
return [];
|
|
116
113
|
});
|
|
117
114
|
} else {
|
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.55",
|
|
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",
|
|
@@ -77,8 +77,6 @@ const AddAllFilesComponent = (props) => {
|
|
|
77
77
|
query: addFileQuery,
|
|
78
78
|
});
|
|
79
79
|
const cartCount = cartFiles.length;
|
|
80
|
-
console.log('!!!!!cartCount:', cartCount);
|
|
81
|
-
console.log('!!!!!cartFiles:', cartFiles);
|
|
82
80
|
if (fileCount <= 6000 && cartCount < 6000) {
|
|
83
81
|
fileIds().then((response) => {
|
|
84
82
|
const data = response[responseKeys[0]];
|
|
@@ -92,20 +90,19 @@ const AddAllFilesComponent = (props) => {
|
|
|
92
90
|
}
|
|
93
91
|
return acc;
|
|
94
92
|
}, []);
|
|
95
|
-
console.log('!!!!!!ids:', ids);
|
|
96
93
|
if (cartCount + fileCount <= 6000) {
|
|
94
|
+
setOpen(true);
|
|
97
95
|
setAddFilesId(ids);
|
|
98
96
|
} else {
|
|
99
97
|
const duplicate = checkDuplicate(cartFiles, ids);
|
|
100
|
-
console.log('!!!duplicate:', duplicate);
|
|
101
98
|
if (cartCount + fileCount - duplicate <= 6000) {
|
|
99
|
+
setOpen(true);
|
|
102
100
|
setAddFilesId(ids);
|
|
103
101
|
} else {
|
|
104
102
|
setAlterDisplay(true);
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
}
|
|
108
|
-
setOpen(true);
|
|
109
106
|
return [];
|
|
110
107
|
});
|
|
111
108
|
} else {
|