gatsby-source-notion-churnotion 1.0.81 → 1.0.83

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,7 +55,6 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
55
55
  books: [],
56
56
  };
57
57
  await createNode(categoryNode);
58
- // Find Book
59
58
  const bookRelations = page.properties?.books?.relation || null;
60
59
  if (bookRelations) {
61
60
  bookRelations.forEach((relation) => {
@@ -145,7 +144,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
145
144
  const postNode = {
146
145
  id: nodeId,
147
146
  category: parentCategoryId,
148
- book: bookNode.id,
147
+ book: bookNode?.id,
149
148
  book_index: page.properties?.bookIndex?.number || 0,
150
149
  title: title,
151
150
  content: updatedBlocks,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gatsby-source-notion-churnotion",
3
3
  "description": "Gatsby plugin that can connect with One Notion Database RECURSIVELY using official API",
4
- "version": "1.0.81",
4
+ "version": "1.0.83",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",