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();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -205,9 +205,7 @@ function DocumentHeader({
|
||||
isMobile ? (
|
||||
<TableOfContentsMenu headings={headings} />
|
||||
) : (
|
||||
<DocumentBreadcrumb document={document}>
|
||||
{!isEditing && toc}
|
||||
</DocumentBreadcrumb>
|
||||
<DocumentBreadcrumb document={document}>{toc}</DocumentBreadcrumb>
|
||||
)
|
||||
}
|
||||
title={
|
||||
|
||||
Reference in New Issue
Block a user