mirror of
https://github.com/Canner/WrenAI.git
synced 2026-09-24 23:29:49 +08:00
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 697766a02f.
This commit is contained in:
@@ -131,7 +131,7 @@ export default forwardRef<Attributes, Props>(function Prompt(props, ref) {
|
||||
|
||||
const submitAsk = async () => {
|
||||
if (isProcessing || !question) return;
|
||||
|
||||
askProcessState.resetState();
|
||||
onSubmit && (await onSubmit(question));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user