diff --git a/ui/src/pages/Badges/Detail/index.tsx b/ui/src/pages/Badges/Detail/index.tsx index cb85a8b85..c5713e2bc 100644 --- a/ui/src/pages/Badges/Detail/index.tsx +++ b/ui/src/pages/Badges/Detail/index.tsx @@ -68,7 +68,7 @@ const Index = () => { {isSkeletonShow ? ( ) : ( - badges?.list?.map((item) => { + badges?.list?.map((item, index) => { const linkUrl = item.object_type === 'question' ? `/questions/${item.question_id}` @@ -84,7 +84,7 @@ const Index = () => { sm={12} md={6} lg={3} - key={item.author_user_info.id} + key={item.object_id || `${item.author_user_info.id}${index}`} className="mb-4">