From d9f86e66bbcfacf55d37802b89f9a006e7b3a94e Mon Sep 17 00:00:00 2001 From: Sahil Silare <32628578+sahil9001@users.noreply.github.com> Date: Fri, 4 Oct 2024 14:08:17 +0530 Subject: [PATCH] fix(wren-ui): fixed a bug for the error which was shown when waiting for response (#719) * fix: fixed a bug for the error which was shown when waiting for response * feat: added resetState on submit ask * Revert "fix: fixed a bug for the error which was shown when waiting for response" This reverts commit 697766a02f9b817563f8d440cb976b66f9c544df. --- wren-ui/src/components/pages/home/prompt/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wren-ui/src/components/pages/home/prompt/index.tsx b/wren-ui/src/components/pages/home/prompt/index.tsx index ed16d5a2b..98b975a20 100644 --- a/wren-ui/src/components/pages/home/prompt/index.tsx +++ b/wren-ui/src/components/pages/home/prompt/index.tsx @@ -131,7 +131,7 @@ export default forwardRef(function Prompt(props, ref) { const submitAsk = async () => { if (isProcessing || !question) return; - + askProcessState.resetState(); onSubmit && (await onSubmit(question)); };