diff --git a/data.json b/data.json index 881f1e0..d654058 100644 --- a/data.json +++ b/data.json @@ -119,15 +119,6 @@ "director": "Джеймс Кэмерон", "image": "", "id": 10 - }, - { - "itemsId": 2, - "name": "zxc", - "rating": "5", - "release_date": "2023-12-08", - "director": "тап", - "image": {}, - "id": 12 } ] } \ No newline at end of file diff --git a/js/lines-rest-api.js b/js/lines-rest-api.js index 16843de..2442841 100644 --- a/js/lines-rest-api.js +++ b/js/lines-rest-api.js @@ -82,5 +82,6 @@ export async function deleteLine(id) { if (!response.ok) { throw response.statusText; } + window.location.reload(true); return response.json(); }