Skip to content

Commit

Permalink
fix(v2): add missing key prop in footer items with HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Nov 3, 2019
1 parent 2d13fe2 commit 26901d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docusaurus-theme-classic/src/theme/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
Expand Down

0 comments on commit 26901d9

Please sign in to comment.