From 25e20fae86fcf9537f2cf2f8b5b6c2e5783ee0a8 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Thu, 6 Nov 2025 10:35:27 +0100 Subject: [PATCH 1/2] fix: apiFetch --- app/utils/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/utils/api.ts b/app/utils/api.ts index 0270e3ae58..eae62b454d 100644 --- a/app/utils/api.ts +++ b/app/utils/api.ts @@ -23,7 +23,10 @@ export const apiFetch = async ( ); const json = await res.json(); if (json.success) { - return json.data && "json" in json.data && "meta" in json.data + return "data" in json && + typeof json.data === "object" && + json.data !== null && + "meta" in json.data ? (SuperJSON.deserialize(json.data) as T) : (json.data as T); } else { From 6e4de8906225108fd9f75f7bd0604fde35266d1e Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Thu, 6 Nov 2025 10:37:27 +0100 Subject: [PATCH 2/2] docs: Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6f5dbb356..7b378560c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ You can also check the - Fix - Clicking on Y axis title in bar charts now open Data tab in the details panels, as in other chart types + - Fixed parsing problems with API routes ### 6.1.2 - 2025-10-22