From d1432d048fbe0e487855dbac9d4ee5fd8f36c344 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Sat, 11 Oct 2025 15:16:58 -0700 Subject: [PATCH] Formatting --- src/context/document/DocumentLoader.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/context/document/DocumentLoader.tsx b/src/context/document/DocumentLoader.tsx index 8b61a1e..1c4b2f2 100644 --- a/src/context/document/DocumentLoader.tsx +++ b/src/context/document/DocumentLoader.tsx @@ -36,8 +36,10 @@ export function DocumentLoader({ relationships: doc.expand?.relationships_via_primary || [], relatedDocuments: doc.expand?.relationships_via_primary?.flatMap( - // Note: If there are no entries in the expanded secondaries there just won't be an entry instead of an empty list. - (r: RecordModel) => r.expand?.secondary ?? [], + (r: RecordModel): AnyDocument[] => + // Note: If there are no entries in the expanded secondaries there + // just won't be an entry instead of an empty list. + r.expand?.secondary ?? [], ) ?? [], }); }