add key to pattern-picker links
This commit is contained in:
parent
57e93e1f12
commit
9997fc528a
1 changed files with 2 additions and 3 deletions
|
@ -28,11 +28,10 @@ const PatternPicker = ({ app }) => {
|
|||
</li>
|
||||
{Object.keys(app.navigation[section]).filter((p)=>!p.startsWith('__')).map(pattern => {
|
||||
const patternProps = {
|
||||
href: app.navigation[section][pattern].__slug,
|
||||
key: pattern
|
||||
href: app.navigation[section][pattern].__slug
|
||||
}
|
||||
|
||||
return (<PickerLink {...patternProps} >
|
||||
return (<PickerLink {...patternProps} key={pattern}>
|
||||
<span className="sr-only">{sectionTitle}</span> {app.navigation[section][pattern].__title}
|
||||
</PickerLink>)
|
||||
})}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue