strapi-dz-component-duplicator 0.1.3 → 0.1.5
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
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Duplicate dynamic zone components directly from Strapi 5 edit view.",
|
|
5
5
|
"author": "Djordje Savanovic",
|
|
6
6
|
"keywords": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@strapi/strapi": "^5.0.0",
|
|
48
48
|
"react": "^18.0.0",
|
|
49
49
|
"react-dom": "^18.0.0",
|
|
50
|
-
"react-intl": "^7.0.0"
|
|
50
|
+
"react-intl": "^6.0.0 || ^7.0.0"
|
|
51
51
|
},
|
|
52
52
|
"strapi": {
|
|
53
53
|
"name": "strapi-dz-component-duplicator",
|