Skip to content

Commit

Permalink
Don't destructure just for fun
Browse files Browse the repository at this point in the history
  • Loading branch information
outoftime committed Mar 20, 2019
1 parent b6e9e02 commit 028e882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CodeMirrorEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function CodeMirrorEditor({
}, [source]);

useEffect(() => {
const {current: editor} = editorRef;
const editor = editorRef.current;

function handleChanges(_, [{origin}]) {
if (origin !== 'setValue') {
Expand Down

0 comments on commit 028e882

Please sign in to comment.