This commit is contained in:
2025-07-15 11:01:07 -07:00
parent 2e9ea14507
commit b30999e907
4 changed files with 17 additions and 26 deletions

View File

@@ -6,7 +6,6 @@ import { FormattedDate } from "../FormattedDate";
*/
export const DocumentTitle = ({
document,
session,
}: {
document: AnyDocument;
session?: Session;

View File

@@ -4,7 +4,7 @@ import { displayName, relationshipsForDocument } from "@/lib/relationships";
import type { DocumentId } from "@/lib/types";
import { Route as CampaignRoute } from "@/routes/_app/_authenticated/campaigns.$campaignId";
import { Link } from "@tanstack/react-router";
import * as _ from "lodash";
import _ from "lodash";
import { Loader } from "../Loader";
import { Route as RelationshipRoute } from "@/routes/_app/_authenticated/document.$documentId/$relationshipType";
import { DocumentTitle } from "./DocumentTitle";

View File

@@ -1,7 +1,7 @@
import { useDocument, useDocumentCache } from "@/context/document/hooks";
import { useDocument } from "@/context/document/hooks";
import type { DocumentId, RelationshipType } from "@/lib/types";
import { RelationshipList } from "../RelationshipList";
import { Loader } from "../Loader";
import { RelationshipList } from "../RelationshipList";
export type Props = {
documentId: DocumentId;
@@ -11,8 +11,6 @@ export type Props = {
export function RelatedDocumentList({ documentId, relationshipType }: Props) {
const { docResult } = useDocument(documentId);
const { cache } = useDocumentCache();
if (docResult?.type !== "ready") {
return <Loader />;
}