Skip to content

Commit e3bae75

Browse files
committed
also clear prefilledMessage variable
1 parent ce91456 commit e3bae75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/server/webui/src/components/ChatScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export default function ChatScreen() {
187187
const hasCanvas = !!canvasData;
188188

189189
useEffect(() => {
190+
prefilledMessage = ''; // clear the prefilled message as it has been set to inputMsg
190191
if (sendPrefilledMessage) {
191192
// send the prefilled message if needed
192193
sendPrefilledMessage = false;

0 commit comments

Comments
 (0)