diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index da6d42b..b3bc15f 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -189,12 +189,12 @@ class CCPExecutionHistory extends HTMLElement { on_click: ev=>{ if(ev.target.getAttribute("name") === "delete"){ if(window.confirm("Confirm deletion of this execution?")){ - const index = Number(ev.target.getAttribute("data-index")) + const index = Number(ev.currentTarget.getAttribute("data-index")) this.deleteExecution(this.#executions[index].id) } } if(ev.target.getAttribute("name") === "zip"){ - const index = Number(ev.target.getAttribute("data-index")) + const index = Number(ev.currentTarget.getAttribute("data-index")) this.downloadZIP(this.#executions[index].id) } },