Merge pull request #298 from Discours/fix/authors_by_name

fixed
This commit is contained in:
Kosta 2023-11-04 18:13:56 +02:00 committed by GitHub
commit 2dda1a09b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,7 @@ export const AllAuthorsView = (props: AllAuthorsViewProps) => {
}) })
const byLetter = createMemo<{ [letter: string]: Author[] }>(() => { const byLetter = createMemo<{ [letter: string]: Author[] }>(() => {
return sortedAuthors() return sortedAuthors().reduce(
.slice(0, 1)
.reduce(
(acc, author) => { (acc, author) => {
let letter = '' let letter = ''
if (author && author.name) { if (author && author.name) {