delete-reaction-fix-header-link-fix
This commit is contained in:
parent
c706915d7d
commit
2763bb4eef
|
@ -21,7 +21,7 @@ export const Link = (props: Props) => {
|
|||
return (
|
||||
<li
|
||||
onClick={props.onClick}
|
||||
classList={{ 'view-switcher__item--selected': page().route === props.routeName }}
|
||||
classList={{ 'view-switcher__item--selected': page()?.route === props.routeName }}
|
||||
>
|
||||
<ConditionalWrapper
|
||||
condition={!isSelected && Boolean(props.routeName)}
|
||||
|
|
|
@ -178,8 +178,8 @@ export const apiClient = {
|
|||
console.debug('[graphql.client.core] createReaction:', response)
|
||||
return response.data.create_reaction.reaction
|
||||
},
|
||||
destroyReaction: async (id: number) => {
|
||||
const response = await apiClient.private.mutation(reactionDestroy, { id: id }).toPromise()
|
||||
destroyReaction: async (reaction_id: number) => {
|
||||
const response = await apiClient.private.mutation(reactionDestroy, { reaction_id }).toPromise()
|
||||
console.debug('[graphql.client.core] destroyReaction:', response)
|
||||
return response.data.delete_reaction.reaction
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user