Skip to content

Commit

Permalink
fix(wren-ui): fixed a bug for the error which was shown when waiting …
Browse files Browse the repository at this point in the history
…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 697766a.
  • Loading branch information
sahil9001 authored Oct 4, 2024
1 parent 71ef395 commit d9f86e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wren-ui/src/components/pages/home/prompt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};

Expand Down

0 comments on commit d9f86e6

Please sign in to comment.