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/09/04 03:06:55 UTC

(incubator-answer) branch test updated: fix: badge detial not show empty

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

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


The following commit(s) were added to refs/heads/test by this push:
     new b5401915 fix: badge detial not show empty
b5401915 is described below

commit b5401915fdc8a17a419d516ac7902541b6f71933
Author: shuai <li...@sifou.com>
AuthorDate: Wed Sep 4 11:06:44 2024 +0800

    fix: badge detial not show empty
---
 ui/src/pages/Badges/Detail/index.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ui/src/pages/Badges/Detail/index.tsx b/ui/src/pages/Badges/Detail/index.tsx
index 27fe9b7e..cb85a8b8 100644
--- a/ui/src/pages/Badges/Detail/index.tsx
+++ b/ui/src/pages/Badges/Detail/index.tsx
@@ -23,7 +23,7 @@ import { Link, useParams, useSearchParams } from 'react-router-dom';
 
 // import classnames from 'classnames';
 
-import { FormatTime, Pagination, Empty } from '@/components';
+import { FormatTime, Pagination } from '@/components';
 import { usePageTags, useSkeletonControl } from '@/hooks';
 // import { formatCount } from '@/utils';
 import { useGetBadgeInfo, useBadgeDetailList } from '@/services';
@@ -102,7 +102,6 @@ const Index = () => {
           })
         )}
       </Row>
-      {Number(badges?.count) <= 0 && !isDetailLoading && <Empty />}
       <div className="d-flex justify-content-center">
         <Pagination
           currentPage={page}