delete debug log
This commit is contained in:
@@ -309,12 +309,6 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
|
||||
handleScrollToBottom()
|
||||
}
|
||||
}
|
||||
// for debugging
|
||||
setChatMessages((prevChatHistory) => {
|
||||
const lastMessage = prevChatHistory[prevChatHistory.length - 1];
|
||||
console.log("Last complete message:", lastMessage?.content);
|
||||
return prevChatHistory;
|
||||
});
|
||||
} catch (error) {
|
||||
if (error.name === 'AbortError') {
|
||||
return
|
||||
|
||||
@@ -16,7 +16,6 @@ export default function OnEnterPlugin({
|
||||
const removeListener = editor.registerCommand(
|
||||
KEY_ENTER_COMMAND,
|
||||
(evt: KeyboardEvent) => {
|
||||
console.log('onEnter', evt)
|
||||
if (
|
||||
onVaultChat &&
|
||||
(Platform.isMacOS ? evt.metaKey : evt.ctrlKey)
|
||||
|
||||
Reference in New Issue
Block a user