A local-first personal finance app
Disable fontSizeChanged to prevent undo stack exceeding limit after dashboard reset (#6094)
Martin Chendaa126523a73
diff --git a/packages/desktop-client/src/components/reports/reports/SummaryCard.tsx b/packages/desktop-client/src/components/reports/reports/SummaryCard.tsxindex 592e074042..4bac6b4c6c 100644--- a/packages/desktop-client/src/components/reports/reports/SummaryCard.tsx+++ b/packages/desktop-client/src/components/reports/reports/SummaryCard.tsx@@ -151,13 +151,6 @@ export function SummaryCard({suffix={content.type === 'percentage' ? '%' : ''}loading={!data}initialFontSize={content.fontSize}- fontSizeChanged={newSize => {- const newContent = { ...content, fontSize: newSize };- onMetaChange({- ...meta,- content: JSON.stringify(newContent),- });- }}animate={isEditing ?? false}/>) : (diff --git a/upcoming-release-notes/6094.md b/upcoming-release-notes/6094.mdnew file mode 100644index 0000000000..fda761c362--- /dev/null+++ b/upcoming-release-notes/6094.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [pyfisssh]+---++Disabled fontSizeChanged to prevent undo stack exceeding limit after dashboard reset