Fix edit notification count

This commit is contained in:
wvffle 2022-07-21 18:32:09 +00:00 committed by Georg Krause
commit 8719e348df

View file

@ -96,7 +96,7 @@ const moderationNotifications = computed(() =>
onMounted(async () => {
const [edits, reports, requests] = await Promise.all([
axios.get('mutations/', { params: { page_size: 1 } }).catch(() => ({ data: { count: 0 } })),
axios.get('mutations/', { params: { page_size: 1, q: 'is_approved:null' } }).catch(() => ({ data: { count: 0 } })),
axios.get('manage/moderation/reports/', { params: { page_size: 1 } }).catch(() => ({ data: { count: 0 } })),
axios.get('manage/moderation/requests/', { params: { page_size: 1 } }).catch(() => ({ data: { count: 0 } }))
])