From eae583209e9b2d9393f4ca5d9f51ddfa1ddb7af5 Mon Sep 17 00:00:00 2001 From: Emilien Chauvet Date: Mon, 10 Jul 2023 16:26:39 -0700 Subject: [PATCH] Use correct Query name (#575) --- .../comments/components/right-drawer/CommentThread.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/front/src/modules/comments/components/right-drawer/CommentThread.tsx b/front/src/modules/comments/components/right-drawer/CommentThread.tsx index 41eecedf99..48af420213 100644 --- a/front/src/modules/comments/components/right-drawer/CommentThread.tsx +++ b/front/src/modules/comments/components/right-drawer/CommentThread.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useState } from 'react'; import { getOperationName } from '@apollo/client/utilities'; import styled from '@emotion/styled'; -import { GET_COMMENT_THREADS_BY_TARGETS } from '@/comments/services'; +import { GET_COMMENT_THREAD } from '@/comments/services'; import { PropertyBox } from '@/ui/components/property-box/PropertyBox'; import { PropertyBoxItem } from '@/ui/components/property-box/PropertyBoxItem'; import { IconArrowUpRight } from '@/ui/icons/index'; @@ -115,9 +115,7 @@ export function CommentThread({ commentThreadId: commentThreadId, commentThreadTitle: title ?? '', }, - refetchQueries: [ - getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '', - ], + refetchQueries: [getOperationName(GET_COMMENT_THREAD) ?? ''], }); } return debounce(updateTitle, 200);