fix(users): add unique key for users list

This commit is contained in:
haitao(lj) 2022-12-14 16:51:00 +08:00
parent 32f009b096
commit 616f7d942e
1 changed files with 3 additions and 2 deletions

View File

@ -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>