fix: Small rendering flash in sidebar when document slug changes
This commit is contained in:
@@ -334,7 +334,9 @@ function InnerDocumentLink(
|
||||
/>
|
||||
}
|
||||
isActive={(match, location: Location<{ starred?: boolean }>) =>
|
||||
!!match && location.state?.starred === inStarredSection
|
||||
(document
|
||||
? location.pathname.endsWith(document.urlId)
|
||||
: !!match) && location.state?.starred === inStarredSection
|
||||
}
|
||||
isActiveDrop={isOverReparent && canDropToReparent}
|
||||
depth={depth}
|
||||
|
||||
Reference in New Issue
Block a user