Browse Source

:bug: 没有指定key

visuddhinanda 3 năm trước cách đây
mục cha
commit
b9295e9eaf

+ 6 - 1
dashboard/src/components/group/GroupFile.tsx

@@ -57,13 +57,18 @@ const Widget = ({ groupId }: IWidget) => {
                   </Tag>
                 );
               });
-              return <Space size={0}>{showtag}</Space>;
+              return (
+                <Space size={0} key={index}>
+                  {showtag}
+                </Space>
+              );
             },
           },
           actions: {
             render: (text, row, index, action) => [
               canDelete ? (
                 <Popconfirm
+                  key={index}
                   title={intl.formatMessage({
                     id: "forms.message.member.delete",
                   })}

+ 6 - 1
dashboard/src/components/group/GroupMember.tsx

@@ -132,13 +132,18 @@ const Widget = ({ groupId }: IWidgetGroupFile) => {
                   </Tag>
                 );
               });
-              return <Space size={0}>{showtag}</Space>;
+              return (
+                <Space size={0} key={index}>
+                  {showtag}
+                </Space>
+              );
             },
           },
           actions: {
             render: (text, row, index, action) => [
               canDelete ? (
                 <Popconfirm
+                  key={index}
                   title={intl.formatMessage({
                     id: "forms.message.member.delete",
                   })}