Skip to content

Commit 5184d8c

Browse files
committed
chore(ui-view): fix console errors in InstUI documentation
INSTUI-4565
1 parent b66ff1f commit 5184d8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/__docs__/src/TableOfContents/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ class TableOfContents extends Component<
150150
6: 'x-large'
151151
}
152152

153-
const TOC = TOCData.filter((data) => !!data.id).map((data) => {
153+
const TOC = TOCData.filter((data) => !!data.id).map((data, index) => {
154154
return (
155155
<List.Item
156-
key={data.id}
156+
key={`${data.id}-${index}`}
157157
padding={`0 0 0 ${levelPaddingMap[data.level]}`}
158158
>
159159
<Link

packages/ui-view/src/View/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ type: example
435435
</View>
436436
<View focusWithin>
437437
if the <code>focusWithin</code> prop is <code>true</code>, the View will display the focus ring if any of its descendants receives focus
438-
<div tabindex="0" role="button" style={{outline: 'none'}}>Tab here to see the focus outline</div>
438+
<div tabIndex="0" role="button" style={{outline: 'none'}}>Tab here to see the focus outline</div>
439439
</View>
440440
</Flex>
441441
```

0 commit comments

Comments
 (0)