gatsby-source-notion-database
Advanced tools
Comparing version 0.4.8 to 0.4.9
{ | ||
"name": "gatsby-source-notion-database", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "Load data from Notion's database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -75,4 +75,4 @@ const getPageHtml = require('./getPageHtml') | ||
case 'relation': | ||
res = itemData[property] | ||
resFk[`${property}___NODE`] = res.filter(i => i).map(i => createNodeId(i.id)) | ||
res = itemData[property].filter(i => i && i.id) // fix undefine relations | ||
resFk[`${property}___NODE`] = res.map(i => createNodeId(i.id)) | ||
break | ||
@@ -79,0 +79,0 @@ default: |
10225