Skip to content

Commit 7aed4ee

Browse files
committed
chore: fix keys warning
Signed-off-by: ayushnirwal <53055971+ayushnirwal@users.noreply.github.com>
1 parent 498c21b commit 7aed4ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/frappe-ui-react/src/components/textEditor/menu

packages/frappe-ui-react/src/components/textEditor/menu/menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const Menu = ({ className }: MenuProps) => {
164164

165165
if (command.component) {
166166
return (
167-
<command.component>
167+
<command.component key={index}>
168168
{({ isActive, onClick }) => (
169169
<button
170170
role="button"

0 commit comments

Comments
 (0)