fix: Load relationships on search page load (#6295)

This commit is contained in:
Tom Moor
2023-12-16 10:36:19 -05:00
committed by GitHub
parent ab7515b0e1
commit 7df0f63ce6
4 changed files with 45 additions and 29 deletions

View File

@@ -68,6 +68,10 @@ const DocumentBreadcrumb: React.FC<Props> = ({
? collections.get(document.collectionId)
: undefined;
React.useEffect(() => {
void document.loadRelations();
}, [document]);
let collectionNode: MenuInternalLink | undefined;
if (collection) {