mirror of https://github.com/fantasticit/think.git
tiptap: fix react key
This commit is contained in:
parent
1ccad83686
commit
bfddd4cc6e
|
@ -199,7 +199,7 @@ export const Insert: React.FC<{ editor: Editor }> = ({ editor }) => {
|
|||
) : command.custom ? (
|
||||
command.custom(editor, runCommand)
|
||||
) : (
|
||||
<Dropdown.Item key={command.label} onClick={runCommand(command)}>
|
||||
<Dropdown.Item key={index + '-' + command.label} onClick={runCommand(command)}>
|
||||
{command.icon}
|
||||
{command.label}
|
||||
</Dropdown.Item>
|
||||
|
|
Loading…
Reference in New Issue