0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 00:12:56 +00:00

Fix editor regression.

This commit is contained in:
David Bolack
2025-01-28 19:37:02 -06:00
parent c27d9978fe
commit 004729b2a4

View File

@@ -181,7 +181,7 @@ const Editor = createClass({
let userSnippetCount = 1; // start snippet count from page 2
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
codeMirror.removeLineClass(lineNumber, 'background', 'pageLine');