Permalink
Browse files

Quick fix for non string ID's

  • Loading branch information...
brookslyrette committed Dec 29, 2018
1 parent b640cea commit 50570fc9028297f1e508bf03da38f9c8f85bb922
Showing with 3 additions and 0 deletions.
  1. +3 −0 packages/gatsby-transformer-json/src/gatsby-node.js
@@ -20,6 +20,9 @@ async function onCreateNode(
}

function transformObject(obj, id, type) {
if (typeof id !== 'string') {
id = id.toString()
}
const jsonNode = {
...obj,
id,

0 comments on commit 50570fc

Please sign in to comment.