gramene-search 2.0.1 → 2.0.2

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.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 299715150
2
- 1777062532991053000
1
+ 299767252
2
+ 1777063118526964000
package/dist/index.js CHANGED
@@ -1526,7 +1526,8 @@ const $24971af0a229e0e3$var$grameneViews = {
1526
1526
  const hasFilters = !!(filters && filters.rightIdx > 1);
1527
1527
  const resultDependentIds = new Set([
1528
1528
  'taxonomy',
1529
- 'list'
1529
+ 'list',
1530
+ 'export'
1530
1531
  ]);
1531
1532
  const autoDisable = numFound === 0 || !hasFilters;
1532
1533
  const hasFirebase = !!(config && config.firebaseConfig);
@@ -1551,6 +1552,11 @@ const $24971af0a229e0e3$var$grameneViews = {
1551
1552
  show: o
1552
1553
  };
1553
1554
  });
1555
+ const anyOtherOn = options.some((v)=>v.id !== 'help' && v.show === 'on');
1556
+ if (!anyOtherOn) options = options.map((v)=>v.id === 'help' ? {
1557
+ ...v,
1558
+ show: 'on'
1559
+ } : v);
1554
1560
  return {
1555
1561
  ...raw,
1556
1562
  options: options