From 31f8c009707c17a30a9c839a21532dda4b0898fa Mon Sep 17 00:00:00 2001 From: curo1305 Date: Mon, 25 May 2026 22:34:54 +0200 Subject: [PATCH] =?UTF-8?q?fix(phase-4):=20request()=20skip=20res.json()?= =?UTF-8?q?=20for=20204=20No=20Content=20=E2=80=94=20fixes=20delete=20not?= =?UTF-8?q?=20updating=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/api/client.js b/frontend/src/api/client.js index d69cc2b..da51261 100644 --- a/frontend/src/api/client.js +++ b/frontend/src/api/client.js @@ -52,6 +52,7 @@ async function request(path, options = {}) { if (payload) err.payload = payload throw err } + if (res.status === 204 || res.headers.get('content-length') === '0') return null return res.json() }