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:
Sahil Silare
2024-10-04 16:38:17 +08:00
committed by GitHub
parent 71ef3956b3
commit d9f86e66bb
@@ -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));
};