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 b816ef0b2..75c49e411 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 @@ -88,11 +88,18 @@ export default class CodeBlockOptions extends OptionsWidget { this.$themeSelect.empty(); for (const [ key, themes ] of Object.entries(themeGroups)) { - const $group = $("").attr("label", key); + const $group = (key ? $("").attr("label", key) : null); + for (const theme of themes) { - $group.append($("