Skip to content

Commit 3a566f2

Browse files
authoredNov 17, 2022
fix: Fix "cannot set properties of undefined" (#415)
1 parent 9d09fb0 commit 3a566f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎themes/theme/src/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export const createTheme = ({ theme, settings, styles }: CreateThemeOptions): Ex
5353
};
5454

5555
if (settings.fontFamily) {
56-
themeOptions['&.cm-editor .cm-scroller'].fontFamily = settings.fontFamily;
56+
themeOptions['&.cm-editor .cm-scroller'] = {
57+
fontFamily: settings.fontFamily,
58+
};
5759
}
5860
if (settings.gutterBackground) {
5961
themeOptions['.cm-gutters'].backgroundColor = settings.gutterBackground;

0 commit comments

Comments
 (0)
Please sign in to comment.