From 5673ca5049e58fad2b8fbb116a41ee5ab53b6172 Mon Sep 17 00:00:00 2001 From: FictionFics <116467253+FictionFics@users.noreply.github.com> Date: Thu, 8 Jan 2026 17:30:18 +0100 Subject: [PATCH] Fix/stacked bar graph crash 6406 (#6554) * fix: remove responsive prop from StackedBarGraph to prevent infinite loop Fixes #6406 The 'responsive' prop on BarChart was conflicting with explicit width/height props provided by AutoSizer, causing recharts' useElementOffset hook to trigger an infinite re-render loop. This manifested as React Error #185 (Maximum update depth exceeded) when displaying stacked bar graphs with many months of data. Removing the redundant 'responsive' prop resolves the issue since explicit dimensions are already provided by the Container component. * docs: add release notes for #6406 * [autofix.ci] apply automated fixes --------- Co-authored-by: Salva Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../src/components/reports/graphs/StackedBarGraph.tsx | 1 - upcoming-release-notes/6554.md | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/6554.md diff --git a/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx b/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx index 9ba60604fa..584118355b 100644 --- a/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx +++ b/packages/desktop-client/src/components/reports/graphs/StackedBarGraph.tsx @@ -209,7 +209,6 @@ export function StackedBarGraph({
{!compact &&
}