diff --git a/packages/desktop-client/src/components/reports/ReportOptions.ts b/packages/desktop-client/src/components/reports/ReportOptions.ts
index 8c2d361dbe6..a79c2059abf 100644
--- a/packages/desktop-client/src/components/reports/ReportOptions.ts
+++ b/packages/desktop-client/src/components/reports/ReportOptions.ts
@@ -11,8 +11,6 @@ const startDate = monthUtils.subMonths(monthUtils.currentMonth(), 5);
const endDate = monthUtils.currentMonth();
export const defaultReport: CustomReportEntity = {
- id: undefined,
- name: 'Default',
startDate,
endDate,
isDateStatic: false,
@@ -24,7 +22,6 @@ export const defaultReport: CustomReportEntity = {
showOffBudget: false,
showHiddenCategories: false,
showUncategorized: false,
- selectedCategories: [],
graphType: 'BarGraph',
conditions: [],
conditionsOp: 'and',
diff --git a/packages/desktop-client/src/components/reports/ReportSidebar.jsx b/packages/desktop-client/src/components/reports/ReportSidebar.jsx
index 0ccb5ef2bc9..46981a2c085 100644
--- a/packages/desktop-client/src/components/reports/ReportSidebar.jsx
+++ b/packages/desktop-client/src/components/reports/ReportSidebar.jsx
@@ -45,7 +45,7 @@ export function ReportSidebar({
}) {
const [menuOpen, setMenuOpen] = useState(false);
const onSelectRange = cond => {
- onReportChange(null, 'modify');
+ onReportChange({ type: 'modify' });
setDateRange(cond);
switch (cond) {
case 'All time':
@@ -79,7 +79,7 @@ export function ReportSidebar({
};
const onChangeMode = cond => {
- onReportChange(null, 'modify');
+ onReportChange({ type: 'modify' });
setMode(cond);
if (cond === 'time') {
if (customReportItems.graphType === 'TableGraph') {
@@ -110,7 +110,7 @@ export function ReportSidebar({
};
const onChangeSplit = cond => {
- onReportChange(null, 'modify');
+ onReportChange({ type: 'modify' });
setGroupBy(cond);
if (customReportItems.mode === 'total') {
if (customReportItems.graphType !== 'TableGraph') {
@@ -128,7 +128,7 @@ export function ReportSidebar({
};
const onChangeBalanceType = cond => {
- onReportChange(null, 'modify');
+ onReportChange({ type: 'modify' });
setBalanceType(cond);
};
@@ -275,6 +275,8 @@ export function ReportSidebar({
>