fix(filter): unique key prop warning

This commit is contained in:
hanzhaoyun.hanzhao 2022-08-30 10:57:40 +08:00 committed by liujuping
parent 70fb8308f9
commit 3fe6e41536

View File

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