fix: dataset eslint error (#1221)

This commit is contained in:
Joel 2023-09-22 22:38:33 +08:00 • committed by GitHub
commit 9df0dcedae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>
</>}