Skip to content

Commit

Permalink
fix(codeblock): update onClick handler to use arrow function syntax. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Sep 28, 2024
1 parent a13c675 commit 6c18437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/ui/codeblock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const CodeBlock: FC<CodeBlockProps> = memo(
variant="ghost"
size="icon"
className="text-xs hover:bg-[#3C382F] hover:text-[#F4F4F5] focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0"
onClick={onApplyInEditor.bind(null, value)}
onClick={() => onApplyInEditor(value)}
>
<IconApplyInEditor />
<span className="sr-only">Apply in Editor</span>
Expand Down

0 comments on commit 6c18437

Please sign in to comment.