sr-npm 1.7.749 → 1.7.750

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": "sr-npm",
3
- "version": "1.7.749",
3
+ "version": "1.7.750",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -439,7 +439,8 @@ async function secondarySearch(_$w,query) {
439
439
  console.log("secondary search query is empty, resetting secondary search");
440
440
  // allsecondarySearchJobs=currentJobs;
441
441
  secondarySearchIsFilled=false;
442
-
442
+ await updateJobsAndNumbersAndFilters(_$w); // we do this here because of the case when searching the list and adding filters from the side, and we delete the search query, so we need to refresh the counts and the jobs
443
+ return;
443
444
  }
444
445
  else {
445
446
  allsecondarySearchJobs=currentJobs.filter(job=>job.title.toLowerCase().includes(query));
@@ -457,6 +458,7 @@ async function secondarySearch(_$w,query) {
457
458
  }
458
459
  secondarySearchIsFilled=true
459
460
  }
461
+
460
462
  handlePaginationButtons(_$w);
461
463
  updateTotalJobsCountText(_$w);
462
464
  await refreshFacetCounts(_$w); //false for clearAll, true for secondarySearch