Remove debug console logs

This commit is contained in:
2024-10-05 10:18:59 +02:00
parent 3691a59666
commit 49c68e3f77
5 changed files with 7 additions and 19 deletions

View File

@@ -77,13 +77,7 @@ const Editor = () => {
}, [selectedFile, settings.theme, handleContentChange, handleSave]);
useEffect(() => {
console.log('Editor: content or selectedFile changed', {
content,
selectedFile,
});
if (viewRef.current && content !== viewRef.current.state.doc.toString()) {
console.log('Editor: updating content in CodeMirror');
viewRef.current.dispatch({
changes: {
from: 0,