gramene-search 1.7.4 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gramene-search",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "search wrapper for gramene",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -359,7 +359,8 @@ const grameneSearch = createAsyncResourceBundle({
359
359
  console.log('search add a fq for ',taxa);
360
360
  fq = `&fq=taxon_id:(${taxa.join(' OR ')})`;
361
361
  }
362
- return fetch(`${store.selectGrameneAPI()}/search?q=${store.selectGrameneFiltersQueryString()}&facet.field=${facets}&rows=${rows}&start=${offset}${fq}&stats=true&${statsFields.join('&')}`)
362
+ // return fetch(`${store.selectGrameneAPI()}/search?q=${store.selectGrameneFiltersQueryString()}&facet.field=${facets}&rows=${rows}&start=${offset}${fq}&stats=true&${statsFields.join('&')}`)
363
+ return fetch(`${store.selectGrameneAPI()}/search?q=${store.selectGrameneFiltersQueryString()}&facet.field=${facets}&rows=${rows}&start=${offset}${fq}`)
363
364
  .then(res => res.json())
364
365
  .then(res => {
365
366
  res.response.docs.forEach(d => {
@@ -266,7 +266,7 @@ const grameneFilters = {
266
266
  case 'GRAMENE_SEARCH_FETCH_FINISHED':
267
267
  return Object.assign({}, state, {status: 'finished'});
268
268
  case 'GRAMENE_GENOMES_UPDATED':
269
- if (!(state.status === 'ready')) {
269
+ if (state.status === 'ready') {
270
270
  return Object.assign({}, state, {status: 'search'});
271
271
  }
272
272
  case 'URL_UPDATED':