Update VersionChooser.tsx
This commit is contained in:
parent
0b7fcbd4e2
commit
19b4da3d42
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue