Skip to content

Commit 6d4530b

Browse files
committed
add map key on FormSelect
1 parent 36ce341 commit 6d4530b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile-ui/src/components/form/select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ const FormSelect: React.FC<FormItemProps> = (props) => {
316316
return false;
317317
}
318318
return true;
319-
}).map((item) => {
319+
}).map((item,index) => {
320320
return (
321-
<CheckboxItem {...item}/>
321+
<CheckboxItem key={index} {...item}/>
322322
)
323323
})}
324324
</CheckList>

0 commit comments

Comments
 (0)