From 8719e348df5288c5f482ceaea597dd06fb5ae3f4 Mon Sep 17 00:00:00 2001 From: wvffle Date: Thu, 21 Jul 2022 18:32:09 +0000 Subject: [PATCH] Fix edit notification count --- front/src/components/Sidebar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index 033976f51..1323f8789 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -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 } })) ])