Skip to content

Commit

Permalink
fix: notif filter selecte field
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jan 30, 2023
1 parent 24e58c2 commit 6d819b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/accounts/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ notificationsController.get = async function (req, res, next) {
{ separator: true },
]).concat(filters.moderatorFilters);
}
const selectedFilter = allFilters.find((filterData) => {

allFilters.forEach((filterData) => {
filterData.selected = filterData.filter === filter;
return filterData.selected;
});
const selectedFilter = allFilters.find(filterData => filterData.selected);
if (!selectedFilter) {
return next();
}
Expand Down

0 comments on commit 6d819b0

Please sign in to comment.