Skip to content

Commit e5918b5

Browse files
committed
Merge branch 'main' of github.com:visualize-admin/visualization-tool into feat/livingdocs-iframe
2 parents 852a739 + 103027d commit e5918b5

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ You can also check the
1313

1414
- Features
1515
- Added dynamic iframe resize support for LivingDocs
16+
- Fix
17+
- Clicking on Y axis title in bar charts now open Data tab in the details
18+
panels, as in other chart types
19+
- Fixed parsing problems with API routes
1620

1721
### 6.1.2 - 2025-10-22
1822

app/charts/shared/axis-height-band.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const AxisHeightBand = () => {
102102
height={leftAxisLabelSize.height}
103103
style={{ display: "flex" }}
104104
>
105-
<OpenMetadataPanelWrapper>
105+
<OpenMetadataPanelWrapper component={yDimension}>
106106
<span style={{ fontSize: axisLabelFontSize, lineHeight: 1.5 }}>
107107
{yDimension.label}
108108
</span>

app/utils/api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export const apiFetch = async <T>(
2323
);
2424
const json = await res.json();
2525
if (json.success) {
26-
return json.data && "json" in json.data && "meta" in json.data
26+
return "data" in json &&
27+
typeof json.data === "object" &&
28+
json.data !== null &&
29+
"meta" in json.data
2730
? (SuperJSON.deserialize(json.data) as T)
2831
: (json.data as T);
2932
} else {

0 commit comments

Comments
 (0)