0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

fix circleCI errors

This commit is contained in:
Gazook89
2021-11-17 09:58:31 -06:00
parent 8b13528661
commit f0608441fc
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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();
},