You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/01/29 07:40:44 UTC

(incubator-answer) branch feat/1.2.5/ui created (now a24b22ce)

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a change to branch feat/1.2.5/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


      at a24b22ce fix: comment sort

This branch includes the following new commits:

     new a24b22ce fix: comment sort

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-answer) 01/01: fix: comment sort

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.2.5/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit a24b22ce5ada0707b6a994bda205e58186d3c97e
Author: shuai <li...@sifou.com>
AuthorDate: Mon Jan 29 15:40:33 2024 +0800

    fix: comment sort
---
 ui/src/services/common.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/services/common.ts b/ui/src/services/common.ts
index c776e7e6..0676cc71 100644
--- a/ui/src/services/common.ts
+++ b/ui/src/services/common.ts
@@ -62,7 +62,7 @@ export const useQueryComments = (params) => {
     params.page = 1;
   } else {
     // only first page need commentId
-    params.query_cond = 'created_at';
+    params.query_cond = '';
     delete params.comment_id;
   }
   return useSWR<Type.ListResult>(