diff options
-rw-r--r-- | client/lib/filter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js index 970aedea..3a174af6 100644 --- a/client/lib/filter.js +++ b/client/lib/filter.js @@ -148,7 +148,7 @@ class AdvancedFilter { _fieldNameToId(field) { console.log("searching: "+field); - const found = CustomFields.find({'name':field}); + const found = CustomFields.findOne({'name':field}); console.log(found); return found._id; } |