Skip to content

Commit

Permalink
Fix to not add node___NODE foreign key field for component-nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Jul 22, 2019
1 parent eeacb28 commit cdfc41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const normalizeData = function(data, baseUrl, depth = 0) {
delete data[key];
} else if (key.length && key[0] === '@') {
data['_' + key.slice(1)] = value;
if (key === '@id' && depth > 0) {
if (key === '@id' && depth > 0 && value.match('@') === null) {
data.node___NODE = value;
}
delete data[key];
Expand Down

0 comments on commit cdfc41a

Please sign in to comment.