From dd6dac3c77dafc9e0cab89fbd5c5f676ead1f92f Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Mon, 7 Apr 2025 04:21:32 +0100 Subject: [PATCH] Adding logging to debug --- frontend/src/app/actions.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/app/actions.tsx b/frontend/src/app/actions.tsx index c26554a..c847b07 100644 --- a/frontend/src/app/actions.tsx +++ b/frontend/src/app/actions.tsx @@ -40,6 +40,7 @@ export async function updateAlbum(formData: FormData) { const title = formData.get('title'); const artist = formData.get('artist'); const genre = formData.get('genre'); + console.log(id,title,artist,genre); return fetch(`https://api.anatid.net/album/${id}`, { method: "PUT", headers: { "Content-Type": "application/json" }, @@ -50,6 +51,7 @@ export async function updateAlbum(formData: FormData) { genre: genre, }) }).then(response => { + console.log(response.json()); return response.json(); }); }