Skip to content

Commit ca993c4

Browse files
committed
- Fixed an issue that caused the Obsidian CodeEditor to default to an invalid theme name.
1 parent 14f9817 commit ca993c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rock.JavaScript.Obsidian/Framework/Controls/codeEditor.obs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194

195195
// Since themes can be passed in as the number or string, we need to convert it to the string version
196196
const themeName = computed<string>(() => {
197-
if (props.theme === 0 && props.editor === "ace") {
197+
if ((props.theme === 0 || props.theme === "rock") && props.editor === "ace") {
198198
return "github";
199199
}
200200

0 commit comments

Comments
 (0)