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

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