fix: TOC not rendered in non-seamless-editing mode
This commit is contained in:
@@ -276,7 +276,7 @@ function Editor(props: Props, ref: React.RefObject<SharedEditor> | null) {
|
||||
|
||||
const handleRefChanged = React.useCallback(
|
||||
(node: SharedEditor | null) => {
|
||||
if (node && !previousHeadings.current) {
|
||||
if (node) {
|
||||
updateHeadings();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user