Skip to content

Commit

Permalink
fix: prompt reuse button does not work in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsaplin committed Nov 21, 2023
1 parent 3e14887 commit b579f31
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web-src/src/components/PromptEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ function PromptEditor(props) {
}, [promptText, setPrompt]);

useEffect(() => {
if (!viewSource) {
setPromptText(prompt);
}
setPromptText(prompt);
}, [prompt, setPromptText]);

return (
Expand Down

0 comments on commit b579f31

Please sign in to comment.