Skip to content

Commit 06e6920

Browse files
Hzy0913liujuping
authored andcommitted
fix(filter): unique key prop warning
1 parent 80c8057 commit 06e6920

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/plugin-outline-pane/src/views/filter.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ export default class Filter extends Component<IProps, IState> {
8888
onChange={this.handleOptionChange}
8989
>
9090
{FILTER_OPTIONS.map((op) => (
91-
<Checkbox id={op.value} value={op.value}>
91+
<Checkbox
92+
id={op.value}
93+
value={op.value}
94+
key={op.value}
95+
>
9296
{op.label}
9397
</Checkbox>
9498
))}

0 commit comments

Comments
 (0)