Skip to content

Commit

Permalink
Update packages/comment-widget/src/comment-replies.ts
Browse files Browse the repository at this point in the history
Co-authored-by: guqing <[email protected]>
  • Loading branch information
ruibaby and guqing committed Apr 28, 2024
1 parent 31a1312 commit 9f80bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/comment-widget/src/comment-replies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class CommentReplies extends LitElement {

const size = this.withReplies ? this.withReplySize : this.replySize;

const queryParams = [`page=${this.page || 0}`, `size=${size}`];
const queryParams = [`page=${this.page || 1}`, `size=${size}`];

const response = await fetch(
`${this.baseUrl}/apis/api.halo.run/v1alpha1/comments/${this.comment?.metadata.name}/reply?${queryParams.join('&')}`
Expand Down

0 comments on commit 9f80bbe

Please sign in to comment.