Commit 5c355f44 authored by StyleZhang's avatar StyleZhang

fix: notion-page-selector

parent f571d7e7
...@@ -42,7 +42,7 @@ const recursivePushInParentDescendants = ( ...@@ -42,7 +42,7 @@ const recursivePushInParentDescendants = (
if (!parentId || !pageId) if (!parentId || !pageId)
return return
if (parentId !== 'root') { if (parentId !== 'root' && pagesMap[parentId]) {
if (!listTreeMap[parentId]) { if (!listTreeMap[parentId]) {
const children = new Set([pageId]) const children = new Set([pageId])
const descendants = new Set([pageId, leafItem.page_id]) const descendants = new Set([pageId, leafItem.page_id])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment