fix: Non-unique key parameter, closes #8104

This commit is contained in:
Tom Moor
2024-12-12 11:39:19 -05:00
parent df03a6da8c
commit a458690bfc

View File

@@ -47,8 +47,8 @@ function Tooltip({
{typeof shortcut === "string" ? (
shortcut
.split("+")
.map((key) => (
<Shortcut key={key}>
.map((key, i) => (
<Shortcut key={`${key}${i}`}>
{key.length === 1 ? key.toUpperCase() : key}
</Shortcut>
))