fix(phase-4): request() skip res.json() for 204 No Content — fixes delete not updating UI

This commit is contained in:
curo1305
2026-05-25 22:34:54 +02:00
parent a7c6c9612b
commit 31f8c00970
+1
View File
@@ -52,6 +52,7 @@ async function request(path, options = {}) {
if (payload) err.payload = payload if (payload) err.payload = payload
throw err throw err
} }
if (res.status === 204 || res.headers.get('content-length') === '0') return null
return res.json() return res.json()
} }