From 45097e0f20a6ddcd395b816647e452ca20ddbde8 Mon Sep 17 00:00:00 2001 From: James Murdza Date: Fri, 6 Sep 2024 15:25:50 -0700 Subject: [PATCH] fix: use latest instruction value when generating code --- frontend/components/editor/generate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/components/editor/generate.tsx b/frontend/components/editor/generate.tsx index b1a60c9..a77f2bd 100644 --- a/frontend/components/editor/generate.tsx +++ b/frontend/components/editor/generate.tsx @@ -89,7 +89,7 @@ export default function GenerateInput({ e.preventDefault() handleGenerate({ regenerate: false }) }, - [] + [input, currentPrompt] ) useEffect(() => {