diff --git a/src/Components/Resource/CommentSection.tsx b/src/Components/Resource/CommentSection.tsx index 4e872fe4e89..6982e6d809b 100644 --- a/src/Components/Resource/CommentSection.tsx +++ b/src/Components/Resource/CommentSection.tsx @@ -12,14 +12,12 @@ import request from "../../Utils/request/request"; const CommentSection = (props: { id: string }) => { const [commentBox, setCommentBox] = useState(""); - const offset = 0; - const limit = 8; const { loading, refetch: resourceRefetch } = useQuery( routes.getResourceComments, { pathParams: { id: props.id }, - query: { limit, offset }, + query: { limit: 8, offset: 0 }, } );