diff --git a/assets/script.js b/assets/script.js index a51f549..d901fca 100644 --- a/assets/script.js +++ b/assets/script.js @@ -107,7 +107,7 @@ async function displayList(data, elementId, deleteFunction) { if ("function" === typeof deleteFunction) { const th = document.createElement("th"); let deleteBtn = document.createElement('i'); - deleteBtn.classList[0] = "ri-delete-bin-line"; + deleteBtn.classList = ["ri-delete-bin-line"]; th.appendChild(deleteBtn); headerRow.appendChild(th); }