mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +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) &&
|
Array.isArray(linkItem.items) &&
|
||||||
linkItem.items.length > 0 ? (
|
linkItem.items.length > 0 ? (
|
||||||
<ul className="footer__items">
|
<ul className="footer__items">
|
||||||
{linkItem.items.map(item =>
|
{linkItem.items.map((item, key) =>
|
||||||
item.html ? (
|
item.html ? (
|
||||||
<div
|
<div
|
||||||
|
key={key}
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: item.html,
|
__html: item.html,
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue