Skip to content

Commit

Permalink
[Fix] Page goes blank on prompt studio (#1114)
Browse files Browse the repository at this point in the history
* fixed page goes blank issue

* fixed page goes blank issue

---------

Co-authored-by: Deepak K <[email protected]>
  • Loading branch information
jagadeeswaran-zipstack and Deepak-Kesavan authored Feb 4, 2025
1 parent bef823f commit 2eb72f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2eb72f5

Please sign in to comment.