Skip to content

Commit fb701d5

Browse files
committed
skip pages which is not alive.
1 parent 3aba73c commit fb701d5

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)