From 8bbb78fc58b72e1cd66a8014b27c94ebf0eeb23c Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Sat, 14 Jun 2025 20:45:32 -0700 Subject: [PATCH] Fix type errors --- src/components/RelationshipList.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/RelationshipList.tsx b/src/components/RelationshipList.tsx index 5cf085b..6a92e96 100644 --- a/src/components/RelationshipList.tsx +++ b/src/components/RelationshipList.tsx @@ -1,16 +1,15 @@ import { DocumentList } from "@/components/DocumentList"; import { pb } from "@/lib/pocketbase"; import { displayName } from "@/lib/relationships"; -import type { Document, DocumentId, RelationshipType } from "@/lib/types"; -import { useQueryClient, useSuspenseQuery } from "@tanstack/react-query"; +import type { AnyDocument, Document, RelationshipType } from "@/lib/types"; import { useState } from "react"; import { Loader } from "./Loader"; import { DocumentRow } from "./documents/DocumentRow"; import { NewRelatedDocumentForm } from "./documents/NewRelatedDocumentForm"; interface RelationshipListProps { - root: Document; - items: DocumentId[]; + root: AnyDocument; + items: AnyDocument[]; relationshipType: RelationshipType; }