Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[Fix] Singlepass json Highlight (#1201)

jagadeeswaran-zipstack7495f19c3ca1
diff --git a/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx b/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx
index b31d186b9..7b15525ac 100644
--- a/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx
+++ b/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx
@@ -217,7 +217,9 @@ const PromptCard = memo(
) => {
if (details?.enable_highlight) {
const processedHighlight =
- singlePassExtractMode && typeof highlightData === "object"
+ singlePassExtractMode &&
+ typeof highlightData === "object" &&
+ !Array.isArray(highlightData)
? flattenHighlightData(highlightData)
: highlightData;
updateCustomTool({