From ac6dffa129686d3995db0b8ddb9b6908775ab60d Mon Sep 17 00:00:00 2001 From: Nikolai Petukhov Date: Thu, 3 Oct 2024 23:12:38 +0300 Subject: [PATCH] check json format --- src/backend/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/api.js b/src/backend/api.js index ba8cd82..51fc3f3 100644 --- a/src/backend/api.js +++ b/src/backend/api.js @@ -21,6 +21,8 @@ export async function post(path, body) { body: JSON.stringify(body) }); + console.log("Initial data from API:", res) + const data = JSON.parse(await res.text()); console.log("Data from API:", data)