Unverified Commit 9df0dced authored by Joel's avatar Joel Committed by GitHub

fix: dataset eslint error (#1221)

parent 724e0537
......@@ -291,8 +291,8 @@ const EmbeddingDetail: FC<Props> = ({ detail, stopPosition = 'top', datasetId: d
<Divider />
<div className={s.previewTip}>{t('datasetDocuments.embedding.previewTip')}</div>
<div className={style.cardWrapper}>
{[1, 2, 3].map(v => (
<SegmentCard loading={true} detail={{ position: v } as any} />
{[1, 2, 3].map((v, index) => (
<SegmentCard key={index} loading={true} detail={{ position: v } as any} />
))}
</div>
</>}
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment