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: a potential crash on fav list (#2716)
Peng Xiao546d5764e6f1
diff --git a/apps/web/src/components/pure/workspace-slider-bar/favorite/favorite-list.tsx b/apps/web/src/components/pure/workspace-slider-bar/favorite/favorite-list.tsxindex 78127ff627..c271194a07 100644--- a/apps/web/src/components/pure/workspace-slider-bar/favorite/favorite-list.tsx+++ b/apps/web/src/components/pure/workspace-slider-bar/favorite/favorite-list.tsx@@ -34,7 +34,9 @@ function FavoriteMenuItem({const referencesToShow = useMemo(() => {return [...new Set(- references.filter(ref => !parentIds.has(ref) && !metaMapping[ref].trash)+ references.filter(+ ref => !parentIds.has(ref) && !metaMapping[ref]?.trash+ )),];}, [references, parentIds, metaMapping]);