From 19b4da3d42282153b59c1de7c7cbefece0afc7ef Mon Sep 17 00:00:00 2001 From: Youwen Wu <38934577+couscousdude@users.noreply.github.com> Date: Thu, 15 Feb 2024 03:52:34 -0800 Subject: [PATCH] Update VersionChooser.tsx --- src/app/document/view/[slug]/VersionChooser.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/document/view/[slug]/VersionChooser.tsx b/src/app/document/view/[slug]/VersionChooser.tsx index 95d23be..63018c1 100644 --- a/src/app/document/view/[slug]/VersionChooser.tsx +++ b/src/app/document/view/[slug]/VersionChooser.tsx @@ -11,7 +11,7 @@ const VersionChooser = ({ slug, }: Readonly<{ doc: Document; slug: string }>) => { const { data, error } = useSuspenseQuery({ - queryKey: ['authors_all'], + queryKey: [doc.manifest.authors.join(' ')], queryFn: () => { const data = loadAuthors(doc.manifest.authors) return data