sr-npm 1.7.849 → 1.7.850

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.
@@ -46,6 +46,7 @@ const FiltersIds={
46
46
  "Employment Type": 'employmentType',
47
47
  "Contract Type": 'contractType',
48
48
  Brands: 'Brands',
49
+ Visibility: 'visibility',
49
50
  }
50
51
 
51
52
 
package/backend/data.js CHANGED
@@ -201,7 +201,7 @@ async function insertJobsReference(valueId) {
201
201
  async function populateCustomFieldsCollection(customFields) {
202
202
  let fieldstoinsert=[]
203
203
  customFields["employmentType"] = "Employment Type";
204
- customFields["visibility"] = "Visibility";
204
+ customFields["Visibility"] = "Visibility";
205
205
  for(const ID of Object.keys(customFields)){
206
206
  fieldstoinsert.push({
207
207
  title: customFields[ID],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.849",
3
+ "version": "1.7.850",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -350,8 +350,10 @@ console.log("i am here 5 ");
350
350
  ? withCounts.filter(o => (o.label || '').toLowerCase().includes(searchQuery))
351
351
  : withCounts;
352
352
  console.log("filtered :", filtered);
353
+
353
354
  // Preserve currently selected values that are still visible
354
355
  let prevSelected=[]
356
+ console.log("FiltersIds[fieldTitle] :", FiltersIds[fieldTitle]);
355
357
  clearAll? prevSelected=[]:prevSelected= _$w(`#${FiltersIds[fieldTitle]}CheckBox`).value;
356
358
  const visibleSet = new Set(filtered.map(o => o.value));
357
359
  console.log("visibleSet :", visibleSet);