0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 04:52:40 +00:00

Update client/homebrew/editor/editor.jsx

Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
G.Ambatte
2021-08-28 11:03:47 +12:00
committed by GitHub
parent 31c348baff
commit 04b2421793

View File

@@ -70,7 +70,7 @@ const Editor = createClass({
handleInject : function(injectText){
const 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');