Fix: Clear error message when generating a new response in ChatPanel
In this commit, we updated the ChatPanel component to clear the error message when generating a new response. This change ensures that any previous error messages are removed from the UI, providing a clean slate for the new response. The setHasError('') function call was added to the onClick event handler of the RegenerationButton component.
This commit is contained in:
parent
4aea940676
commit
4a6ff075a7
@ -214,6 +214,7 @@ const chatPanel = () => {
|
|||||||
setGenerating(true);
|
setGenerating(true);
|
||||||
setResponsed(false);
|
setResponsed(false);
|
||||||
setCurrentMessage('');
|
setCurrentMessage('');
|
||||||
|
setHasError('');
|
||||||
}} />
|
}} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Container >
|
</Container >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user