Skip to content

Commit

Permalink
fix: change badges detail item key
Browse files Browse the repository at this point in the history
  • Loading branch information
shuashuai committed Sep 19, 2024
1 parent e24a718 commit b927953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/pages/Badges/Detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Index = () => {
{isSkeletonShow ? (
<Loader />
) : (
badges?.list?.map((item) => {
badges?.list?.map((item, index) => {
const linkUrl =
item.object_type === 'question'
? `/questions/${item.question_id}`
Expand All @@ -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">
<FormatTime
time={item.created_at}
Expand Down

0 comments on commit b927953

Please sign in to comment.