From 2763bb4eefce483d6787b9eabc44a688b5051e43 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 16 Feb 2024 19:27:38 +0300 Subject: [PATCH] delete-reaction-fix-header-link-fix --- src/components/Nav/Header/Link.tsx | 2 +- src/graphql/client/core.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Nav/Header/Link.tsx b/src/components/Nav/Header/Link.tsx index 98711721..6bf639b5 100644 --- a/src/components/Nav/Header/Link.tsx +++ b/src/components/Nav/Header/Link.tsx @@ -21,7 +21,7 @@ export const Link = (props: Props) => { return (
  • { - 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 },