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 ...@@ -291,8 +291,8 @@ const EmbeddingDetail: FC<Props> = ({ detail, stopPosition = 'top', datasetId: d
<Divider /> <Divider />
<div className={s.previewTip}>{t('datasetDocuments.embedding.previewTip')}</div> <div className={s.previewTip}>{t('datasetDocuments.embedding.previewTip')}</div>
<div className={style.cardWrapper}> <div className={style.cardWrapper}>
{[1, 2, 3].map(v => ( {[1, 2, 3].map((v, index) => (
<SegmentCard loading={true} detail={{ position: v } as any} /> <SegmentCard key={index} loading={true} detail={{ position: v } as any} />
))} ))}
</div> </div>
</>} </>}
......
...@@ -89,8 +89,8 @@ const HitDetail: FC<IHitDetailProps> = ({ segInfo, vectorInfo }) => { ...@@ -89,8 +89,8 @@ const HitDetail: FC<IHitDetailProps> = ({ segInfo, vectorInfo }) => {
<div className={s.keywordWrapper}> <div className={s.keywordWrapper}>
{!segInfo?.keywords?.length {!segInfo?.keywords?.length
? '-' ? '-'
: segInfo?.keywords?.map((word) => { : segInfo?.keywords?.map((word, index) => {
return <div className={s.keyword}>{word}</div> return <div key={index} className={s.keyword}>{word}</div>
})} })}
</div> </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