diff --git a/src/public/app/widgets/type_widgets/options/appearance/code_block.js b/src/public/app/widgets/type_widgets/options/appearance/code_block.js
index 021e4619d..b816ef0b2 100644
--- a/src/public/app/widgets/type_widgets/options/appearance/code_block.js
+++ b/src/public/app/widgets/type_widgets/options/appearance/code_block.js
@@ -84,13 +84,17 @@ export default class CodeBlockOptions extends OptionsWidget {
}
async optionsLoaded(options) {
- const themes = await server.get("options/codeblock-themes");
+ const themeGroups = await server.get("options/codeblock-themes");
this.$themeSelect.empty();
- for (const theme of themes) {
- this.$themeSelect.append($("