changeset 2698:472f4c6a1ec0

Sidebar: set count of pending imports correctly
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 18 Mar 2019 11:32:27 +0100
parents 8279c044c04b
children ef10f1cd6cb8
files client/src/components/Sidebar.vue
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Sidebar.vue	Mon Mar 18 11:28:43 2019 +0100
+++ b/client/src/components/Sidebar.vue	Mon Mar 18 11:32:27 2019 +0100
@@ -208,8 +208,7 @@
           headers: { "X-Gemma-Auth": localStorage.getItem("token") }
         })
           .then(response => {
-            const { imports } = response.data;
-            this.stagingNotifications = imports.length;
+            this.stagingNotifications = response.data;
           })
           .catch(error => {
             const { status, data } = error.response;