Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix type

Marc Seitz9cf80e7d3706
diff --git a/lib/notion/utils.ts b/lib/notion/utils.ts
index 287d6a93..08d6cd02 100644
--- a/lib/notion/utils.ts
+++ b/lib/notion/utils.ts
@@ -1,5 +1,5 @@
import { NotionAPI } from "notion-client";
-import { ExtendedRecordMap } from "notion-types";
+import { Block, ExtendedRecordMap } from "notion-types";
import { getPageContentBlockIds, parsePageId } from "notion-utils";
import notion from "./index";
@@ -165,7 +165,7 @@ export const addSignedUrls: NotionAPI["addSignedUrls"] = async ({
}
const allFileInstances = contentBlockIds.flatMap((blockId) => {
- const block = recordMap.block[blockId]?.value;
+ const block = recordMap.block[blockId]?.value as Block | undefined;
if (
block &&