We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576d803 commit 443e10aCopy full SHA for 443e10a
packages/notion-utils/src/get-all-pages-in-space.ts
@@ -108,8 +108,8 @@ export async function getAllPagesInSpace(
108
page.collection_query
109
)) {
110
for (const collectionData of Object.values(collectionViews)) {
111
- const { blockIds } = collectionData
112
-
+ const { blockIds } =
+ collectionData?.collection_group_results || {}
113
if (blockIds) {
114
for (const collectionItemId of blockIds) {
115
void processPage(collectionItemId, depth + 1)
0 commit comments