Skip to content

Commit a6fa131

Browse files
committed
revert json change + revert omitted update package.json
1 parent 25f7ef7 commit a6fa131

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,5 @@
5252
},
5353
"run-if-changed": {
5454
"renovate.json5": "yarn renovate-config-validator"
55-
},
56-
"version": "0.0.0"
55+
}
5756
}

packages/gatsby-source-strapi/src/normalize.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import { getContentTypeSchema, makeParentNodeName } from "./helpers";
1212
const prepareJSONNode = (json, context) => {
1313
const { createContentDigest, createNodeId, parentNode, attributeName } = context;
1414

15-
// Use parentNode.id instead of strapi_document_id_or_regular_id to ensure uniqueness across locales
16-
const jsonNodeId = createNodeId(`${parentNode.id}-${attributeName}-JSONNode`);
15+
const jsonNodeId = createNodeId(
16+
`${parentNode.strapi_document_id_or_regular_id}-${parentNode.internal.type}-${attributeName}-JSONNode`,
17+
);
1718

1819
const JSONNode = {
1920
...(_.isPlainObject(json) ? { ...json } : { strapi_json_value: json }),

0 commit comments

Comments
 (0)