mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-15 21:22:43 +00:00
Fix editor regression.
This commit is contained in:
@@ -181,7 +181,7 @@ const Editor = createClass({
|
|||||||
let userSnippetCount = 1; // start snippet count from page 2
|
let userSnippetCount = 1; // start snippet count from page 2
|
||||||
|
|
||||||
const whichSource = this.state.view === 'text' ? this.props.brew.text : this.props.brew.snippets;
|
const whichSource = this.state.view === 'text' ? this.props.brew.text : this.props.brew.snippets;
|
||||||
_.forEach(whichSource.split('\n'), (line, lineNumber)=>{
|
_.forEach(whichSource?.split('\n'), (line, lineNumber)=>{
|
||||||
|
|
||||||
//reset custom line styles
|
//reset custom line styles
|
||||||
codeMirror.removeLineClass(lineNumber, 'background', 'pageLine');
|
codeMirror.removeLineClass(lineNumber, 'background', 'pageLine');
|
||||||
|
|||||||
Reference in New Issue
Block a user