fix: TOC not rendered in non-seamless-editing mode

This commit is contained in:
Tom Moor
2022-11-24 11:35:29 -05:00
parent 18535d949e
commit fd9625b57e
2 changed files with 2 additions and 4 deletions

View File

@@ -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();
}
},