fix: dataset eslint error (#1221)

This commit is contained in:
Joel
2023-09-22 22:38:33 +08:00
committed by GitHub
parent 724e053732
commit 9df0dcedae
3 changed files with 93 additions and 83 deletions

View File

@@ -89,8 +89,8 @@ const HitDetail: FC<IHitDetailProps> = ({ segInfo, vectorInfo }) => {
<div className={s.keywordWrapper}>
{!segInfo?.keywords?.length
? '-'
: segInfo?.keywords?.map((word) => {
return <div className={s.keyword}>{word}</div>
: segInfo?.keywords?.map((word, index) => {
return <div key={index} className={s.keyword}>{word}</div>
})}
</div>
</div>