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 (
|
return (
|
||||||
<li
|
<li
|
||||||
onClick={props.onClick}
|
onClick={props.onClick}
|
||||||
classList={{ 'view-switcher__item--selected': page().route === props.routeName }}
|
classList={{ 'view-switcher__item--selected': page()?.route === props.routeName }}
|
||||||
>
|
>
|
||||||
<ConditionalWrapper
|
<ConditionalWrapper
|
||||||
condition={!isSelected && Boolean(props.routeName)}
|
condition={!isSelected && Boolean(props.routeName)}
|
||||||
|
|
|
@ -178,8 +178,8 @@ export const apiClient = {
|
||||||
console.debug('[graphql.client.core] createReaction:', response)
|
console.debug('[graphql.client.core] createReaction:', response)
|
||||||
return response.data.create_reaction.reaction
|
return response.data.create_reaction.reaction
|
||||||
},
|
},
|
||||||
destroyReaction: async (id: number) => {
|
destroyReaction: async (reaction_id: number) => {
|
||||||
const response = await apiClient.private.mutation(reactionDestroy, { id: id }).toPromise()
|
const response = await apiClient.private.mutation(reactionDestroy, { reaction_id }).toPromise()
|
||||||
console.debug('[graphql.client.core] destroyReaction:', response)
|
console.debug('[graphql.client.core] destroyReaction:', response)
|
||||||
return response.data.delete_reaction.reaction
|
return response.data.delete_reaction.reaction
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user