Skip to content

Commit a2fb50a

Browse files
committed
adds destructed fontFamily from props
1 parent b15a400 commit a2fb50a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

browser/components/CodeEditor.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,10 +1128,11 @@ export default class CodeEditor extends React.Component {
11281128
const {
11291129
className,
11301130
fontSize,
1131+
fontFamily,
11311132
width,
11321133
height
11331134
} = this.props
1134-
const fontFamily = normalizeEditorFontFamily(this.props.fontFamily)
1135+
const normalizedFontFamily = normalizeEditorFontFamily(fontFamily)
11351136

11361137
return (<
11371138
div className={
@@ -1140,7 +1141,7 @@ export default class CodeEditor extends React.Component {
11401141
ref='root'
11411142
tabIndex='-1'
11421143
style={{
1143-
fontFamily,
1144+
normalizedFontFamily,
11441145
fontSize: fontSize,
11451146
width: width,
11461147
height: height

0 commit comments

Comments
 (0)