Add React key prop to homepage filter widget (#661)
This commit is contained in:
parent
61a21d34b2
commit
f2a7a145e4
|
@ -188,7 +188,11 @@ export function ContractSearch(props: {
|
||||||
<Row className="gap-2">
|
<Row className="gap-2">
|
||||||
{toPairs<filter>(filterOptions).map(([label, f]) => {
|
{toPairs<filter>(filterOptions).map(([label, f]) => {
|
||||||
return (
|
return (
|
||||||
<PillButton selected={filter === f} onSelect={() => setFilter(f)}>
|
<PillButton
|
||||||
|
key={f}
|
||||||
|
selected={filter === f}
|
||||||
|
onSelect={() => setFilter(f)}
|
||||||
|
>
|
||||||
{label}
|
{label}
|
||||||
</PillButton>
|
</PillButton>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user