Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/routes/notifications/helpers/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ const MILLISECONDS_IN_MINUTE = 60000
export const getNotificationsFilters = (sources) => {
const globalNotificationsQuantity = _.find(sources, { id: 'global' }).total
const filterSections = [
[{ title: 'All Notifications', value: '' }],
[{ title: 'Global', value: 'global', quantity: globalNotificationsQuantity }]
[{ title: 'All Notifications', value: '' }]
]
if (globalNotificationsQuantity > 0) {
filterSections.push([{ title: 'Global', value: 'global', quantity: globalNotificationsQuantity }])
}
const filtersBySource = []

sources.forEach(source => {
Expand Down