mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix splice error
This commit is contained in:
parent
ec746d2131
commit
3b813a6849
@ -192,7 +192,7 @@
|
||||
function deleteItem(item) {
|
||||
safe_item = sanitize(item);
|
||||
console.log(item)
|
||||
words.splice(words.indexOf(item), words.indexOf(item));
|
||||
words.splice(words.indexOf(item), 1);
|
||||
$("#" + safe_item.replaceAll(" ", "-")).remove();
|
||||
liveSearch();
|
||||
localStorage.setItem("words", JSON.stringify(words))
|
||||
|
Loading…
Reference in New Issue
Block a user