diff --git a/frontend/js/apicalls.js b/frontend/js/apicalls.js
index 602c1e69f8697a15f5f56ff504600b2e7b52d74e..01c905178c3286acd217f3023cd6118a92ebc069 100644
--- a/frontend/js/apicalls.js
+++ b/frontend/js/apicalls.js
@@ -267,7 +267,7 @@ function listDatasets(datatype, filterName = null, filterUrl = null, filterKeys
     }
     if (filterKeys.length > 0) {
         for (key in filterKeys) {
-            fullUrl = fullUrl + "has_key=" + key + "&";
+            fullUrl = fullUrl + "has_key=" + filterKeys[key] + "&";
         }
     }
     console.log("Sending GET request to  " + fullUrl + " for listing datasets.");