Skip to content

Commit

Permalink
fix: added condition for text prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Oct 1, 2024
1 parent c711c8e commit 2786710
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/App/SideBar/SelectedNodeView/Default/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,13 @@ const NodeDetail = ({ label, value, hasAudio, isPlaying, togglePlay }: Props) =>
<AudioButton onClick={togglePlay}>{isPlaying ? <AiPauseIcon /> : <AiPlayIcon />}</AudioButton>
)}
</Text>
{false && <Text className="node-detail__value">{highlightSearchTerm(String(value), searchTerm)}</Text>}
<SyntaxHighlighter language="javascript" style={okaidia}>
{String(value)}
</SyntaxHighlighter>
{label !== 'Text' ? (
<Text className="node-detail__value">{highlightSearchTerm(String(value), searchTerm)}</Text>
) : (
<SyntaxHighlighter language="javascript" style={okaidia}>
{String(value)}
</SyntaxHighlighter>
)}
</StyledDetail>
<StyledDivider />
</>
Expand Down

0 comments on commit 2786710

Please sign in to comment.