Skip to content

Commit 8d9e885

Browse files
committed
fix TypeError in addSignedUrls
1 parent 015c681 commit 8d9e885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/notion-client/src/notion-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class NotionAPI {
217217
}
218218

219219
const allFileInstances = contentBlockIds.flatMap((blockId) => {
220-
const block = recordMap.block[blockId].value
220+
const block = recordMap.block[blockId]?.value
221221

222222
if (
223223
block &&

0 commit comments

Comments
 (0)