Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: badge detial not show empty

shuaib5401915fdc8
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}