You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we're fetching lists of node updates from WPGQL
102
+
// in that case we don't need to worry about logging duplicates
103
+
!(`since`invariables)
104
+
){
99
105
constexistingNode=allContentNodes.find(
100
106
innerNode=>innerNode.id===node.id
101
107
)
102
108
103
-
if(!hasLoggedDuplicateMessage){
104
-
hasLoggedDuplicateMessage=true
105
-
helpers.reporter.warn(
106
-
formatLogMessage(
107
-
`Found a duplicate ID in WordPress - this means you will have fewer nodes in Gatsby than in WordPress. This will need to be resolved in WP by identifying and fixing the underlying bug with your WP plugins or custom code.`
109
+
if(existingNode){
110
+
if(!hasLoggedDuplicateMessage){
111
+
hasLoggedDuplicateMessage=true
112
+
helpers.reporter.warn(
113
+
formatLogMessage(
114
+
`Found a duplicate ID in WordPress - this means you will have fewer nodes in Gatsby than in WordPress. This will need to be resolved in WP by identifying and fixing the underlying bug with your WP plugins or custom code.`
0 commit comments