mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 09:42:43 +00:00
Update client/homebrew/editor/editor.jsx
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
@@ -70,7 +70,7 @@ const Editor = createClass({
|
|||||||
handleInject : function(injectText){
|
handleInject : function(injectText){
|
||||||
const text = (
|
const text = (
|
||||||
this.isText() && this.props.brew.text ||
|
this.isText() && this.props.brew.text ||
|
||||||
this.isStyle() && (this.props.brew.style || DEFAULT_STYLE_TEXT)
|
this.isStyle() && (this.props.brew.style ?? DEFAULT_STYLE_TEXT)
|
||||||
);
|
);
|
||||||
|
|
||||||
const lines = text.split('\n');
|
const lines = text.split('\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user