From 6240fe246e17fd8a95857c26f579aef22b8f70dc Mon Sep 17 00:00:00 2001 From: Hermann <blumh@ethz.ch> Date: Sat, 1 Sep 2018 12:13:30 +0200 Subject: [PATCH] bugfix: only search if searchKeys are set --- src/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.js b/src/auth.js index 86af03e..2a26363 100644 --- a/src/auth.js +++ b/src/auth.js @@ -125,7 +125,7 @@ export class ResourceHandler { const fullQuery = {}; - if ('search' in query && query.search && query.search.length > 0) { + if ('search' in query && query.search && query.search.length > 0 && this.searchKeys) { // translate search into where, we just look if any field contains search // The search-string may match any of the keys in the object specified in the // constructor -- GitLab