feature: 1. add TOC & adjust get eidtor style;

This commit is contained in:
mitsuha
2022-08-25 14:38:56 +08:00
parent 637a03ae1d
commit aa5dfaf36f
@@ -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) {