Skip to content

Commit

Permalink
fix: remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Aug 19, 2024
1 parent d53a78b commit ae51c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandpack-react/src/components/CodeEditor/CodeMirror.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export const CodeMirror = React.forwardRef<CodeMirrorRef, CodeMirrorProps>(
EditorView.updateListener.of((update) => {
if (update.docChanged) {
const newCode = update.state.doc.toString();
console.log("change");

setInternalCode(newCode);
onCodeUpdate?.(newCode);
}
Expand Down

0 comments on commit ae51c97

Please sign in to comment.