There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: show recursive items (#3750)
Peng Xiao2830cb19feb4
diff --git a/apps/core/src/components/pure/workspace-slider-bar/components/reference-page.tsx b/apps/core/src/components/pure/workspace-slider-bar/components/reference-page.tsxindex a92763347a..872943a329 100644--- a/apps/core/src/components/pure/workspace-slider-bar/components/reference-page.tsx+++ b/apps/core/src/components/pure/workspace-slider-bar/components/reference-page.tsx@@ -29,14 +29,8 @@ export const ReferencePage = ({const icon = setting?.mode === 'edgeless' ? <EdgelessIcon /> : <PageIcon />;const references = useBlockSuitePageReferences(workspace, pageId);const referencesToShow = useMemo(() => {- return [- ...new Set(- references.filter(- ref => !parentIds.has(ref) && !metaMapping[ref]?.trash- )- ),- ];- }, [references, parentIds, metaMapping]);+ return [...new Set(references.filter(ref => !metaMapping[ref]?.trash))];+ }, [references, metaMapping]);const [collapsed, setCollapsed] = useState(true);const collapsible = referencesToShow.length > 0;const nestedItem = parentIds.size > 0;