From 2eb72f5263b2003cf3f42c19041954fb2b8e100c Mon Sep 17 00:00:00 2001 From: jagadeeswaran-zipstack Date: Tue, 4 Feb 2025 16:52:00 +0530 Subject: [PATCH] [Fix] Page goes blank on prompt studio (#1114) * fixed page goes blank issue * fixed page goes blank issue --------- Co-authored-by: Deepak K <89829542+Deepak-Kesavan@users.noreply.github.com> --- .../components/custom-tools/document-parser/DocumentParser.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/custom-tools/document-parser/DocumentParser.jsx b/frontend/src/components/custom-tools/document-parser/DocumentParser.jsx index 43f64d111..b5efa8b1a 100644 --- a/frontend/src/components/custom-tools/document-parser/DocumentParser.jsx +++ b/frontend/src/components/custom-tools/document-parser/DocumentParser.jsx @@ -55,7 +55,7 @@ function DocumentParser({ return () => { // Set the prompts with updated changes when the component is unmounted - const modifiedDetails = { ...details }; + const modifiedDetails = { ...useCustomToolStore.getState()?.details }; const modifiedPrompts = [...(modifiedDetails?.prompts || [])]?.map( (item) => { const itemPromptId = item?.prompt_id;