mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-06 07:01:45 -05:00
🐛 (reports) fix reports page having empty blocks (#3566)
This commit is contained in:
@@ -82,16 +82,26 @@ export function Overview() {
|
||||
const isDashboardsFeatureEnabled = useFeatureFlag('dashboards');
|
||||
const spendingReportFeatureFlag = useFeatureFlag('spendingReport');
|
||||
|
||||
const baseLayout = widgets.map(widget => ({
|
||||
i: widget.id,
|
||||
w: widget.width,
|
||||
h: widget.height,
|
||||
minW:
|
||||
isCustomReportWidget(widget) || widget.type === 'markdown-card' ? 2 : 3,
|
||||
minH:
|
||||
isCustomReportWidget(widget) || widget.type === 'markdown-card' ? 1 : 2,
|
||||
...widget,
|
||||
}));
|
||||
const baseLayout = widgets
|
||||
.map(widget => ({
|
||||
i: widget.id,
|
||||
w: widget.width,
|
||||
h: widget.height,
|
||||
minW:
|
||||
isCustomReportWidget(widget) || widget.type === 'markdown-card' ? 2 : 3,
|
||||
minH:
|
||||
isCustomReportWidget(widget) || widget.type === 'markdown-card' ? 1 : 2,
|
||||
...widget,
|
||||
}))
|
||||
.filter(item => {
|
||||
if (isDashboardsFeatureEnabled) {
|
||||
return true;
|
||||
}
|
||||
if (item.type === 'custom-report' && !customReportMap.has(item.meta.id)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
const layout =
|
||||
spendingReportFeatureFlag &&
|
||||
|
||||
6
upcoming-release-notes/3566.md
Normal file
6
upcoming-release-notes/3566.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Reports: fix old reports page having empty blocks.
|
||||
Reference in New Issue
Block a user