sr-npm 1.7.285 → 1.7.287

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.285",
3
+ "version": "1.7.287",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -346,6 +346,7 @@ async function handleLocationParam(_$w,location) {
346
346
  if (_$w('#dropdownLocation').options.find(option => option.value === locationValue))
347
347
  {
348
348
  _$w('#dropdownLocation').value = locationValue;
349
+ console.log("i am here!@@##!@#")
349
350
  await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
350
351
  }
351
352
  else{
package/pages/homePage.js CHANGED
@@ -88,10 +88,6 @@ async function handleSearchInput(_$w) {
88
88
  const searchByTitle=[{field: 'title', searchTerm: trimmedInput}];
89
89
  const searchByCity=[{field: 'cityText', searchTerm: trimmedInput}];
90
90
 
91
- // const fieldsToSearch = [
92
- // { field: 'title', searchTerm: trimmedInput },
93
- // { field: 'cityText', searchTerm: trimmedInput }
94
- // ];
95
91
 
96
92
  let filter = await getFilter(searchByTitle);
97
93
 
@@ -124,7 +120,6 @@ async function handleSearchInput(_$w) {
124
120
 
125
121
  function handleSearch(searchInput) {
126
122
  const trimmedInput = searchInput.trim();
127
-
128
123
  if (trimmedInput) {
129
124
  if(searchByCityFlag){
130
125
  location.to(`/positions?location=${trimmedInput}`);
@@ -20,7 +20,6 @@ function getFilter(fieldsToSearch = [], mode = 'or') {
20
20
  ? (mode === 'or' ? filter.or(condition) : filter.and(condition))
21
21
  : condition;
22
22
  });
23
- console.log("filter@@@@@ is: ", filter);
24
23
  return filter;
25
24
  }
26
25