Update VersionChooser.tsx

This commit is contained in:
Youwen Wu 2024-02-15 03:52:34 -08:00 committed by GitHub
parent 0b7fcbd4e2
commit 19b4da3d42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ const VersionChooser = ({
slug, slug,
}: Readonly<{ doc: Document; slug: string }>) => { }: Readonly<{ doc: Document; slug: string }>) => {
const { data, error } = useSuspenseQuery({ const { data, error } = useSuspenseQuery({
queryKey: ['authors_all'], queryKey: [doc.manifest.authors.join(' ')],
queryFn: () => { queryFn: () => {
const data = loadAuthors(doc.manifest.authors) const data = loadAuthors(doc.manifest.authors)
return data return data