From 764f79b2a824f98e9e48f8889689d1aac41b0d48 Mon Sep 17 00:00:00 2001 From: leoevgeniy <98206383+leoevgeniy@users.noreply.github.com> Date: Fri, 8 Dec 2023 01:57:42 +0400 Subject: [PATCH] reload site --- data.json | 9 --------- js/lines-rest-api.js | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) 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(); }