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:
Maxim 2019-04-19 12:58:33 -05:00 committed by GitHub
parent 85cd180b6e
commit 73c31803db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
});