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
feature: 1. add TOC & adjust get eidtor style;
mitsuhaaa5dfaf36fdd
diff --git a/apps/ligo-virgo/src/pages/workspace/docs/components/toc/TOC.tsx b/apps/ligo-virgo/src/pages/workspace/docs/components/toc/TOC.tsxindex 183941b45d..eb0f138357 100644--- a/apps/ligo-virgo/src/pages/workspace/docs/components/toc/TOC.tsx+++ b/apps/ligo-virgo/src/pages/workspace/docs/components/toc/TOC.tsx@@ -124,9 +124,7 @@ export const TOC = () => {const listenerMapRef = useRef<ListenerMap>(new Map());const { currentEditors } = useCurrentEditors();- const editor = useMemo(() => {- return currentEditors[page_id] as Virgo;- }, [currentEditors, page_id]);+ const editor = currentEditors[page_id] as Virgo;const updateTocDataSource = useCallback(async () => {if (!editor) {