1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #1368 from marcusstenbeck/patch-1

fix(code-editor): use correct prop for font family
This commit is contained in:
Kazz Yokomizo
2018-01-05 19:06:57 +09:00
committed by GitHub

View File

@@ -250,7 +250,7 @@ export default class CodeEditor extends React.Component {
render () {
const { className, fontSize } = this.props
let fontFamily = this.props.className
let fontFamily = this.props.fontFamily
fontFamily = _.isString(fontFamily) && fontFamily.length > 0
? [fontFamily].concat(defaultEditorFontFamily)
: defaultEditorFontFamily