diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 5694001..5f05aee 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -519,7 +519,7 @@ class CCPExecutionHistory extends HTMLElement { apply : (e,d)=>e.setAttribute("data-index", d.id), on_click: (ev)=>{ const id = ev.target.getAttribute("data-index") - const lang = ev.target.parentElement.querySelector("select[name=language-selector]") + const lang = ev.target.parentElement.querySelector("select[name=language-selector]").value this.generateCode(id, lang) } },