From dbbecb6b72cc52af55ec0f4f72c2ca296bf7328e Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 22 Mar 2018 19:35:38 +0200 Subject: [PATCH] 1521740138 --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 69366c9..2c21880 100644 --- a/app.js +++ b/app.js @@ -48,6 +48,8 @@ function deleteBook(bookId) { let rowElement = document.getElementById("bookRow"+bookId); bookTable.removeChild(rowElement); + + delete books[bookId]; } function editBook(bookId) {