修复遍历key值

This commit is contained in:
whyour
2022-09-20 01:23:33 +08:00
parent 931638b687
commit 5168b044a3
4 changed files with 22 additions and 18 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ const CronDetailModal = ({
{currentCron.labels?.length > 0 &&
currentCron.labels[0] !== '' &&
currentCron.labels?.map((label: string, i: number) => (
<Tag color="blue" style={{ marginRight: 5 }}>
<Tag key={label} color="blue" style={{ marginRight: 5 }}>
{label}
</Tag>
))}