@nkhang1902/strapi-plugin-export-import-clsx 1.1.151 → 1.1.152
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.
|
@@ -196,6 +196,7 @@ const ExportImportButtons = (props) => {
|
|
|
196
196
|
const updated = result.summary?.updated || result.result.updated || 0;
|
|
197
197
|
|
|
198
198
|
const errorList = result.result?.errors || [];
|
|
199
|
+
const total = created + updated;
|
|
199
200
|
|
|
200
201
|
if (errorList.length > 0) {
|
|
201
202
|
setImportErrors(errorList);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nkhang1902/strapi-plugin-export-import-clsx",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.152",
|
|
4
4
|
"description": "A powerful Strapi plugin for exporting and importing data with Excel support and advanced filtering",
|
|
5
5
|
"main": "./strapi-server.js",
|
|
6
6
|
"scripts": {
|
|
@@ -342,10 +342,15 @@ module.exports = ({ strapi }) => ({
|
|
|
342
342
|
const f = parseFloat(value);
|
|
343
343
|
return Number.isNaN(f) ? 0 : f;
|
|
344
344
|
}
|
|
345
|
-
case 'date':
|
|
345
|
+
case 'date': {
|
|
346
|
+
const d = new Date(value);
|
|
347
|
+
if (isNaN(d.getTime())) return null;
|
|
348
|
+
return d.toISOString().slice(0, 10); // YYYY-MM-DD ONLY
|
|
349
|
+
}
|
|
346
350
|
case 'datetime': {
|
|
347
351
|
const d = new Date(value);
|
|
348
|
-
|
|
352
|
+
if (isNaN(d.getTime())) return null;
|
|
353
|
+
return d.toISOString(); // full ISO is valid here
|
|
349
354
|
}
|
|
350
355
|
default:
|
|
351
356
|
return value;
|