From bbd832565ae05e694b5e497079a95d56505d1430 Mon Sep 17 00:00:00 2001 From: Abdhesh Nayak Date: Thu, 8 Feb 2024 21:07:23 +0530 Subject: [PATCH] :art: Fixed issue with codeview --- src/apps/console/components/code-view.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}
+ )}
{