mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
fix(v2): add missing key prop in footer items with HTML (#1935)
This commit is contained in:
parent
2d13fe2e0f
commit
34a84a3240
1 changed files with 2 additions and 1 deletions
|
@ -62,9 +62,10 @@ function Footer() {
|
|||
Array.isArray(linkItem.items) &&
|
||||
linkItem.items.length > 0 ? (
|
||||
<ul className="footer__items">
|
||||
{linkItem.items.map(item =>
|
||||
{linkItem.items.map((item, key) =>
|
||||
item.html ? (
|
||||
<div
|
||||
key={key}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: item.html,
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue