diff --git a/src/apps/console/components/code-view.tsx b/src/apps/console/components/code-view.tsx index c7e70f125..290460987 100644 --- a/src/apps/console/components/code-view.tsx +++ b/src/apps/console/components/code-view.tsx @@ -9,7 +9,7 @@ interface ICodeView { copy: boolean; showShellPrompt?: boolean; language?: string; - title: string; + title?: string; } const CodeView = ({ data, @@ -45,7 +45,9 @@ const CodeView = ({ return (
-
{title}
+ {!!title && ( +
{title}
+ )}
{