Skip to content

Commit

Permalink
fix(components): Fix copy button copies outdated snippet
Browse files Browse the repository at this point in the history
#18829

Fixed a regression introduced in 5f5cf81.

`highlightableCode` was missing in dependencies array therefore
the copied code snippet was fixed to the first-rendered one.
  • Loading branch information
pocka committed Aug 8, 2022
1 parent c8bcbeb commit 9783a08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const SyntaxHighlighter: FC<SyntaxHighlighterProps> = ({
})
.catch(logger.error);
},
[]
[highlightableCode]
);

return (
Expand Down

0 comments on commit 9783a08

Please sign in to comment.