hot fixes
This commit is contained in:
parent
d6ef1013c9
commit
1a88ef109a
|
@ -35,6 +35,11 @@ export const AllAuthorsView = (props: Props) => {
|
|||
|
||||
const byLetter = createMemo<{ [letter: string]: Author[] }>(() => {
|
||||
return sortedAuthors().reduce((acc, author) => {
|
||||
if (!author.name) {
|
||||
// name === null for new users
|
||||
return acc
|
||||
}
|
||||
|
||||
const letter = author.name[0].toUpperCase()
|
||||
if (!acc[letter]) {
|
||||
acc[letter] = []
|
||||
|
|
|
@ -347,7 +347,6 @@ export type Query = {
|
|||
markdownBody: Scalars['String']
|
||||
myChats: Array<Maybe<ChatResult>>
|
||||
reactionsByAuthor: Array<Maybe<Reaction>>
|
||||
reactionsByShout: Array<Maybe<Reaction>>
|
||||
reactionsForShouts: Array<Maybe<Reaction>>
|
||||
recentAll: Array<Maybe<Shout>>
|
||||
recentCandidates: Array<Maybe<Shout>>
|
||||
|
@ -422,12 +421,6 @@ export type QueryReactionsByAuthorArgs = {
|
|||
slug: Scalars['String']
|
||||
}
|
||||
|
||||
export type QueryReactionsByShoutArgs = {
|
||||
limit: Scalars['Int']
|
||||
offset: Scalars['Int']
|
||||
slug: Scalars['String']
|
||||
}
|
||||
|
||||
export type QueryReactionsForShoutsArgs = {
|
||||
limit: Scalars['Int']
|
||||
offset: Scalars['Int']
|
||||
|
|
|
@ -4,7 +4,6 @@ import { getLogger } from './logger'
|
|||
import { publicGraphQLClient } from '../graphql/publicGraphQLClient'
|
||||
import { privateGraphQLClient } from '../graphql/privateGraphQLClient'
|
||||
import articleBySlug from '../graphql/query/article-by-slug'
|
||||
import articleReactions from '../graphql/query/article-reactions'
|
||||
import articlesRecentAll from '../graphql/query/articles-recent-all'
|
||||
import articlesRecentPublished from '../graphql/query/articles-recent-published'
|
||||
import topicsAll from '../graphql/query/topics-all'
|
||||
|
@ -285,14 +284,14 @@ export const apiClient = {
|
|||
offset: number
|
||||
}): Promise<Reaction[]> => {
|
||||
const response = await publicGraphQLClient
|
||||
.query(articleReactions, {
|
||||
slug: articleSlug,
|
||||
.query(reactionsForShouts, {
|
||||
shouts: [articleSlug],
|
||||
limit,
|
||||
offset
|
||||
})
|
||||
.toPromise()
|
||||
|
||||
return response.data?.reactionsByShout
|
||||
return response.data?.reactionsForShouts
|
||||
},
|
||||
getAuthorsBySlugs: async ({ slugs }) => {
|
||||
const response = await publicGraphQLClient.query(authorsBySlugs, { slugs }).toPromise()
|
||||
|
|
Loading…
Reference in New Issue
Block a user