Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gen3/guppy",
"version": "0.18.0",
"version": "0.18.1",
"description": "Server that support GraphQL queries on data from elasticsearch",
"main": "src/server/server.js",
"directories": {
Expand Down
3 changes: 2 additions & 1 deletion src/components/ConnectedFilter/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const capitalizeFirstLetter = (str) => {

// createSearchFilterLoadOptionsFn creates a handler function that loads the search filter's
// autosuggest options as the user types in the search filter.
const createSearchFilterLoadOptionsFn = (field, guppyConfig) => (searchString, offset) => {
const createSearchFilterLoadOptionsFn = (field, guppyConfig, csrfToken) => (searchString, offset) => {
const NUM_SEARCH_OPTIONS = 20;
return new Promise((resolve, reject) => {
// If searchString is empty return just the first NUM_SEARCH_OPTIONS options.
Expand All @@ -69,6 +69,7 @@ const createSearchFilterLoadOptionsFn = (field, guppyConfig) => (searchString, o
offset,
NUM_SEARCH_OPTIONS,
'accessible',
csrfToken,
)
.then((res) => {
if (!res.data || !res.data[guppyConfig.type]) {
Expand Down