@growth-operations/ui-shared 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/usage/UsageTab.jsx +7 -0
package/package.json
CHANGED
package/src/usage/UsageTab.jsx
CHANGED
|
@@ -128,6 +128,13 @@ export function UsageTab({
|
|
|
128
128
|
<Flex direction="column" gap="small">
|
|
129
129
|
<Text format={{ fontWeight: "bold" }}>Credits used per day</Text>
|
|
130
130
|
<LineChart
|
|
131
|
+
// key={days}: reported symptom was the chart not visibly
|
|
132
|
+
// changing when the window dropdown changed, even though the
|
|
133
|
+
// backend series does change (verified). LineChart is a remote
|
|
134
|
+
// component (rendered outside this iframe via HubSpot's own
|
|
135
|
+
// bridge), so force a full remount on window change rather than
|
|
136
|
+
// relying on its own prop-diffing to pick up the new data.
|
|
137
|
+
key={days}
|
|
131
138
|
data={series}
|
|
132
139
|
axes={{
|
|
133
140
|
x: { field: "date", fieldType: "datetime", label: "Day" },
|