diff client/src/store/imports.js @ 2447:522024fa06eb

staging: filter logs on server
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 01 Mar 2019 13:00:42 +0100
parents df56bc53e86d
children 3ad81357a57c
line wrap: on
line diff
--- a/client/src/store/imports.js	Fri Mar 01 12:55:48 2019 +0100
+++ b/client/src/store/imports.js	Fri Mar 01 13:00:42 2019 +0100
@@ -160,7 +160,8 @@
     },
     getImports({ commit }, filter) {
       let queryParams = "";
-      if (filter) queryParams = "?states=" + filter.join(",");
+      if (filter && filter.length > 0)
+        queryParams = "?states=" + filter.join(",");
       return new Promise((resolve, reject) => {
         HTTP.get("/imports" + queryParams, {
           headers: { "X-Gemma-Auth": localStorage.getItem("token") }