diff --git a/src/components/code/_code_block.tsx b/src/components/code/_code_block.tsx index dd9d1a9ddb4..17793392d15 100644 --- a/src/components/code/_code_block.tsx +++ b/src/components/code/_code_block.tsx @@ -210,12 +210,12 @@ export const EuiCodeBlockImpl: FunctionComponent = ({ const getCopyButton = (textToCopy?: string) => { let copyButton: JSX.Element | undefined; - if (isCopyable && textToCopy) { + if (isCopyable) { copyButton = (
{(copyButton: string) => ( - + {(copy) => (