Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion app/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export const apiFetch = async <T>(
);
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 {
Expand Down