fix(filter): unique key prop warning

This commit is contained in:
hanzhaoyun.hanzhao 2022-08-30 10:57:40 +08:00 committed by 刘菊萍(絮黎)
parent 80c805780f
commit 06e6920602

View File

@ -88,7 +88,11 @@ export default class Filter extends Component<IProps, IState> {
onChange={this.handleOptionChange}
>
{FILTER_OPTIONS.map((op) => (
<Checkbox id={op.value} value={op.value}>
<Checkbox
id={op.value}
value={op.value}
key={op.value}
>
{op.label}
</Checkbox>
))}