Fix deleting sessions via red trash icon

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-11-19 20:55:54 +00:00
parent 69f838f7a6
commit a4b7537ae1

View File

@@ -191,7 +191,7 @@ $(function () {
function deleteThisSession() {
// This function is called when a red trash button is clicked
// We get the ID of the current item from the data-del-id attribute
const thisID = parseInt(this.attr("data-del-id"), 10);
const thisID = parseInt($(this).attr("data-del-id"), 10);
deleted = 0;
deleteOneSession(thisID, 1, false);
}