diff --git a/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx b/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx index 794a450cc..8bccb5607 100644 --- a/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx +++ b/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx @@ -171,7 +171,10 @@ const PromptCard = memo( highlightedPrompt, highlightedProfile ) => { - if (details?.enable_highlight) { + if ( + details?.enable_highlight && + promptDetailsState?.enforce_type !== "json" + ) { updateCustomTool({ selectedHighlight: { highlight: highlightData, diff --git a/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx b/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx index 70580f192..e0d27c58c 100644 --- a/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx +++ b/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx @@ -84,7 +84,6 @@ function PromptOutput({ const { generatePromptOutputKey } = usePromptOutput(); const isTableExtraction = enforceType === TABLE_ENFORCE_TYPE || enforceType === RECORD_ENFORCE_TYPE; - const tooltipContent = (adapterConf) => (
{Object.entries(adapterConf)?.map(([key, value]) => ( @@ -205,13 +204,18 @@ function PromptOutput({ transition={{ duration: 0.5, ease: "linear" }} className={`prompt-card-llm ${ details?.enable_highlight && + enforceType !== "json" && selectedHighlight?.highlightedPrompt === promptId && selectedHighlight?.highlightedProfile === profileId && "highlighted-prompt-cell" }`} >