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(users): add unique key for users list

haitao(lj)616f7d942e40
diff --git a/ui/src/pages/Users/index.tsx b/ui/src/pages/Users/index.tsx
index 1436cb82..145e5e1f 100644
--- a/ui/src/pages/Users/index.tsx
+++ b/ui/src/pages/Users/index.tsx
@@ -1,6 +1,7 @@
import { Container, Row, Col } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
+import { Fragment } from 'react';
import { usePageTags } from '@/hooks';
import { useQueryContributeUsers } from '@/services';
@@ -33,7 +34,7 @@ const Users = () => {
return null;
}
return (
- <>
+ <Fragment key={key}>
<Row className="mb-4">
<Col>
<h6 className="mb-0">{t(key)}</h6>
@@ -65,7 +66,7 @@ const Users = () => {
</Col>
))}
</Row>
- </>
+ </Fragment>
);
})}
</Col>