@nkhang1902/strapi-plugin-export-import-clsx 1.1.17 → 1.1.19

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.
@@ -272,6 +272,10 @@ const ExportImportButtons = (props) => {
272
272
  // Create ref for file input
273
273
  const fileInputRef = useRef(null);
274
274
 
275
+ const currentContentType = getContentType();
276
+ if (["api::event.event", "api::event-content.event-content", "api::meeting-participation-status.meeting-participation-status"].includes(currentContentType)) {
277
+ return null
278
+ }
275
279
  return (
276
280
  <div
277
281
  style={{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkhang1902/strapi-plugin-export-import-clsx",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
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": {
@@ -14,7 +14,7 @@ module.exports = ({ strapi }) => ({
14
14
  .plugin("export-import-clsx")
15
15
  .service("import-service");
16
16
 
17
- const { eventId } = ctx.request.query;
17
+ let { eventId } = ctx.request.query;
18
18
  if (eventId == "") {
19
19
  eventId = null;
20
20
  }
@@ -298,7 +298,7 @@ module.exports = ({ strapi }) => ({
298
298
 
299
299
  if (componentFields.includes(key)) {
300
300
  for (const subKey in value) {
301
- if (["id", "createdAt", "updatedAt", "lastUpdate", "passcode"]) continue;
301
+ if (["id", "createdAt", "updatedAt", "lastUpdate", "passcode"].includes(subKey)) continue;
302
302
  result[`${key}_${subKey}`] = value[subKey];
303
303
  }
304
304
  continue;
@@ -211,7 +211,7 @@ module.exports = ({ strapi }) => ({
211
211
  updatedEntry[field] = Array.isArray(value) ? processed : processed[0];
212
212
  } catch (err) {
213
213
  throw new Error(
214
- `Error resolving field '${field}' with value '${JSON.stringify(value)}': ${err.message}`
214
+ `Error resolving field "${field}" with value "${value}": ${err.message}`
215
215
  );
216
216
  }
217
217
  }