strapi-dz-component-duplicator 0.1.3 → 0.1.4

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.
@@ -373,9 +373,7 @@ const toRelationConnectEntry = (relation, attribute, contentTypes, createTempKey
373
373
  __temp_key__: createTempKey(),
374
374
  apiData: {
375
375
  id,
376
- documentId: documentId ?? '',
377
376
  locale,
378
- isTemporary: relation.apiData?.isTemporary ?? true,
379
377
  },
380
378
  };
381
379
 
@@ -469,7 +467,7 @@ const sanitizeComponentValue = async ({
469
467
  const next = {};
470
468
 
471
469
  for (const [fieldName, attribute] of Object.entries(attributes)) {
472
- if (!(fieldName in value)) {
470
+ if (fieldName === 'id' || !(fieldName in value)) {
473
471
  continue;
474
472
  }
475
473
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-dz-component-duplicator",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Duplicate dynamic zone components directly from Strapi 5 edit view.",
5
5
  "author": "Djordje Savanovic",
6
6
  "keywords": [