delete debug log

This commit is contained in:
duanfuxiang
2025-01-07 14:22:56 +08:00
parent 0f42ce3b80
commit cd172e371d
8 changed files with 12 additions and 32 deletions

View File

@@ -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

View File

@@ -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)