@@ -, +, @@ --- .../prog/en/modules/tools/additional-contents.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -676,7 +676,9 @@ /* Activate first tab and initialize its CodeMirror instance */ let firstTab = $("#tabs a:first"); firstTab.tab("show"); - initCodeMirror( firstTab[0].hash ); + if ( firstTab[0] ) { + initCodeMirror( firstTab[0].hash ); + } } $("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { --