Skip to content

Commit

Permalink
rm limit and offset
Browse files Browse the repository at this point in the history
  • Loading branch information
konavivekramakrishna committed Oct 19, 2023
1 parent c3f4c77 commit 59ea9f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Components/Resource/CommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
}
);

Expand Down

0 comments on commit 59ea9f5

Please sign in to comment.