Fix category schedule indicators not showing up in budget page (#5036)

* Fix category schedule indicators not showing up in budget page

* Update release notes
This commit is contained in:
Joel Jeremy Marquez
2025-05-21 09:30:36 -07:00
committed by GitHub
parent 2e9a752baa
commit 174e13b3fe
2 changed files with 12 additions and 13 deletions

View File

@@ -76,19 +76,12 @@ export function useCategoryScheduleGoalTemplates({
const scheduleIds = new Set(schedules.map(s => s.id));
const statuses = allStatuses;
for (const scheduleId of statuses.keys()) {
if (!scheduleIds.has(scheduleId)) {
statuses.delete(scheduleId);
}
}
const statusLabels = allStatusLabels;
for (const scheduleId of statusLabels.keys()) {
if (!scheduleIds.has(scheduleId)) {
statusLabels.delete(scheduleId);
}
}
const statuses = new Map(
[...allStatuses].filter(([id]) => scheduleIds.has(id)),
);
const statusLabels = new Map(
[...allStatusLabels].filter(([id]) => scheduleIds.has(id)),
);
return {
schedules,

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [joel-jeremy]
---
Fix category schedule indicators not showing up in budget page