Cleared in memory the deleted elm reference
Fixed minor bug where deleting a session still has the elm exist in memory.
This commit is contained in:
parent
85cd180b6e
commit
73c31803db
|
@ -165,6 +165,7 @@ const deleteFromStorage = (elm = null) => {
|
|||
storage.remove(elm.innerText).then(() => {
|
||||
elm.parentElement.removeChild(elm);
|
||||
});
|
||||
selectedItem = null; // reset selectedItem
|
||||
swal("Deleted session successfully...", {
|
||||
icon: "success",
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue