We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cf8a76 + 6e4de89 commit 103027dCopy full SHA for 103027d
CHANGELOG.md
@@ -14,6 +14,7 @@ You can also check the
14
- Fix
15
- Clicking on Y axis title in bar charts now open Data tab in the details
16
panels, as in other chart types
17
+ - Fixed parsing problems with API routes
18
19
### 6.1.2 - 2025-10-22
20
app/utils/api.ts
@@ -23,7 +23,10 @@ export const apiFetch = async <T>(
23
);
24
const json = await res.json();
25
if (json.success) {
26
- return json.data && "json" in json.data && "meta" in json.data
+ return "data" in json &&
27
+ typeof json.data === "object" &&
28
+ json.data !== null &&
29
+ "meta" in json.data
30
? (SuperJSON.deserialize(json.data) as T)
31
: (json.data as T);
32
} else {
0 commit comments