You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by ro...@apache.org on 2024/08/22 02:47:57 UTC

(incubator-answer) 01/02: refactor: Update key prop in BadgeDetail component

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

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

commit e6aa178062c65cd0f79671efd6ebda90219f3843
Author: robin <ro...@rnode.me>
AuthorDate: Thu Aug 22 10:45:24 2024 +0800

    refactor: Update key prop in BadgeDetail component
---
 ui/src/pages/Badges/Detail/index.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ui/src/pages/Badges/Detail/index.tsx b/ui/src/pages/Badges/Detail/index.tsx
index 46f49ce2..f8a9327a 100644
--- a/ui/src/pages/Badges/Detail/index.tsx
+++ b/ui/src/pages/Badges/Detail/index.tsx
@@ -80,7 +80,12 @@ const Index = () => {
                       ? `/question/${item.question_id}?commentId=${item.comment_id}`
                       : '';
             return (
-              <Col sm={12} md={6} lg={3} key={item.object_id} className="mb-4">
+              <Col
+                sm={12}
+                md={6}
+                lg={3}
+                key={item.author_user_info.id}
+                className="mb-4">
                 <FormatTime
                   time={item.created_at}
                   preFix={t('awarded')}