Skip to content

Commit 66a8d80

Browse files
committed
filter out archived reason categories
1 parent 544cf08 commit 66a8d80

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/budget/services/budgetReducers.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,10 @@ class BudgetReducers {
460460
};
461461

462462
action.payload.reasonCategories.forEach(function(reasonCategory) {
463-
reasonCategories.ids.push(reasonCategory.id);
464-
reasonCategories.list[reasonCategory.id] = reasonCategory;
463+
if (!reasonCategory.archived) {
464+
reasonCategories.ids.push(reasonCategory.id);
465+
reasonCategories.list[reasonCategory.id] = reasonCategory;
466+
}
465467
});
466468
return reasonCategories;
467469
default:

0 commit comments

Comments
 (0)