We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecb615c + 9a632bf commit 64b1fe9Copy full SHA for 64b1fe9
components/sidebar-item/sidebar-item.jsx
@@ -1,4 +1,5 @@
1
import React from 'react';
2
+import { uniqueId } from 'lodash';
3
import Link from '../link/link';
4
5
const block = 'sidebar-item';
@@ -36,7 +37,7 @@ export default class SidebarItem extends React.Component {
36
37
anchors.map(anchor => (
38
<li
39
className={ `${block}__anchor` }
- key={ `anchor-${title}-${anchor.id}` }>
40
+ key={ `anchor-${title}-${uniqueId()}` }>
41
<a href={ this._generateAnchorURL(anchor) }>
42
{ anchor.title }
43
</a>
0 commit comments