From 27867102abb695d5e8e6118276cf91be62b2fc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Tue, 1 Oct 2024 15:54:47 +0300 Subject: [PATCH] fix: added condition for text prop --- .../App/SideBar/SelectedNodeView/Default/index.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/App/SideBar/SelectedNodeView/Default/index.tsx b/src/components/App/SideBar/SelectedNodeView/Default/index.tsx index 2cab72474..3e2b3f2bd 100644 --- a/src/components/App/SideBar/SelectedNodeView/Default/index.tsx +++ b/src/components/App/SideBar/SelectedNodeView/Default/index.tsx @@ -138,10 +138,13 @@ const NodeDetail = ({ label, value, hasAudio, isPlaying, togglePlay }: Props) => {isPlaying ? : } )} - {false && {highlightSearchTerm(String(value), searchTerm)}} - - {String(value)} - + {label !== 'Text' ? ( + {highlightSearchTerm(String(value), searchTerm)} + ) : ( + + {String(value)} + + )}