Skip to content

Commit 3e8b41b

Browse files
Merge pull request NotionX#514 from ulion/feature/fix_nonalive_page_issue
2 parents b6afe49 + fb701d5 commit 3e8b41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/notion-utils/src/get-all-pages-in-space.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function getAllPagesInSpace(
7474
Object.keys(page.block)
7575
.filter((key) => {
7676
const block = page.block[key]?.value
77-
if (!block) return false
77+
if (!block || block.alive === false) return false
7878

7979
if (
8080
block.type !== 'page' &&

0 commit comments

Comments
 (0)