0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 20:58:40 +00:00

use default theme as default (can't believe i didn't do that before)

This commit is contained in:
Víctor Losada Hernández
2026-04-03 22:50:06 +02:00
parent 950f6a79c5
commit 9d507a5bc7
+1 -1
View File
@@ -145,7 +145,7 @@ const CodeEditor = forwardRef(
const customHighlightPlugin = createHighlightPlugin(renderer, tab);
const languageExtension = language === 'css' ? css() : [markdown({ base: markdownLanguage, codeLanguages: languages }), html({ autoCloseTags: true })];
const themeExtension = Array.isArray(themes[editorTheme]) ? themes[editorTheme] : [];
const themeExtension = Array.isArray(themes[editorTheme]) ? themes[editorTheme] : themes[0];
return [
history(), //allows for undo and redo