From f0608441fcc5736e75c84adc3b97ca7f9741ba45 Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Wed, 17 Nov 2021 09:58:31 -0600 Subject: [PATCH] fix circleCI errors --- client/homebrew/editor/editor.jsx | 4 ++-- shared/naturalcrit/codeEditor/codeEditor.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index ef96e64c8..7b31ca75e 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -116,8 +116,8 @@ const Editor = createClass({ // get top and bottom line numbers currently in editor viewport const viewportRect = codeMirror.getWrapperElement().getBoundingClientRect(); - const topVisibleLine = codeMirror.lineAtHeight(viewportRect.top, "window"); - const bottomVisibleLine = codeMirror.lineAtHeight(viewportRect.bottom, "window"); + const topVisibleLine = codeMirror.lineAtHeight(viewportRect.top, 'window'); + const bottomVisibleLine = codeMirror.lineAtHeight(viewportRect.bottom, 'window'); _.forEach(this.props.brew.text.split('\n'), (line, lineNumber)=>{ if(this.props.renderer == 'legacy') { diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index 8b9c372b6..9b202cedc 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -80,7 +80,7 @@ const CodeEditor = createClass({ // Note: codeMirror passes a copy of itself in this callback. cm === this.codeMirror. Either one works. this.codeMirror.on('change', (cm)=>{this.props.onChange(cm.getValue());}); - this.codeMirror.on('viewportChange', _.debounce((cm)=>{this.props.onChange(cm.getValue());},200)); + this.codeMirror.on('viewportChange', _.debounce((cm)=>{this.props.onChange(cm.getValue());}, 200)); this.updateSize(); },