fix clear history with example
This commit is contained in:
@@ -209,9 +209,10 @@ export default (props: {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
props.chatStore.history = [];
|
props.chatStore.history = props.chatStore.history.filter(
|
||||||
|
(msg) => msg.example && !msg.hide
|
||||||
|
);
|
||||||
props.chatStore.postBeginIndex = 0;
|
props.chatStore.postBeginIndex = 0;
|
||||||
props.chatStore.totalTokens = 0;
|
|
||||||
props.setChatStore({ ...props.chatStore });
|
props.setChatStore({ ...props.chatStore });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user