Skip to content

Commit

Permalink
fix(react-components): fix toolbar tippy console error
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Jul 10, 2024
1 parent 6ae3d7b commit 4d79714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const CommandButton = ({

return (
<CogsTooltip
content={<LabelWithShortcut label={tooltip} shortcut={shortcut} />}
content={<LabelWithShortcut key={tooltip} label={tooltip} shortcut={shortcut} />}
appendTo={document.body}
placement={placement}>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const OptionButton = ({

return (
<CogsTooltip
content={<LabelWithShortcut label={tooltip} shortcut={shortcut} />}
content={<LabelWithShortcut key={tooltip} label={tooltip} shortcut={shortcut} />}
appendTo={document.body}
placement={placement}>
<Dropdown
Expand Down

0 comments on commit 4d79714

Please sign in to comment.