Skip to content

Commit 74e10b1

Browse files
committed
Merge branch 'master' of github.com:payloadcms/payload
2 parents 6c3bc6f + b8ca2c5 commit 74e10b1

File tree

1 file changed

+1
-1
lines changed
  • src/admin/components/elements/CodeEditor

1 file changed

+1
-1
lines changed

src/admin/components/elements/CodeEditor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const CodeEditor: React.FC<Props> = (props) => {
2222
<Editor
2323
height="35vh"
2424
className={classes}
25+
theme={theme === 'dark' ? 'vs-dark' : 'vs'}
2526
options={
2627
{
2728
detectIndentation: true,
@@ -31,7 +32,6 @@ const CodeEditor: React.FC<Props> = (props) => {
3132
readOnly: Boolean(readOnly),
3233
scrollBeyondLastLine: false,
3334
tabSize: 2,
34-
theme: theme === 'dark' ? 'vs-dark' : 'vs',
3535
wordWrap: 'on',
3636
...options,
3737
}

0 commit comments

Comments
 (0)