sr-npm 1.7.599 → 1.7.600
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
|
@@ -6,7 +6,7 @@ let valuesByFieldIdGlobal = null;
|
|
|
6
6
|
const selectedByField = new Map(); // fieldId -> array of selected value IDs
|
|
7
7
|
const optionsByFieldId = new Map(); // fieldId -> [{label, value}]
|
|
8
8
|
const countsByFieldId = new Map();
|
|
9
|
-
let
|
|
9
|
+
let alljobsIds=[]
|
|
10
10
|
let valueToJobs={}
|
|
11
11
|
async function careersMultiBoxesPageOnReady(_$w) {
|
|
12
12
|
await loadJobs(_$w);
|
|
@@ -43,8 +43,9 @@ async function careersMultiBoxesPageOnReady(_$w) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
updateSelectedValuesRepeater(_$w);
|
|
46
|
-
if(
|
|
47
|
-
|
|
46
|
+
if(alljobsIds.length===0) {
|
|
47
|
+
let alljobsresult=await getAllRecords(COLLECTIONS.JOBS);
|
|
48
|
+
alljobsIds=alljobsresult.items.map(job=>job._id);
|
|
48
49
|
}
|
|
49
50
|
if(valueToJobs.size===0) {
|
|
50
51
|
const allvaluesobjects=await getAllRecords(COLLECTIONS.CUSTOM_VALUES);
|
|
@@ -55,7 +56,7 @@ async function careersMultiBoxesPageOnReady(_$w) {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
console.log("valueToJobs: ",valueToJobs)
|
|
58
|
-
console.log("
|
|
59
|
+
console.log("alljobsIds: ",alljobsIds)
|
|
59
60
|
|
|
60
61
|
}
|
|
61
62
|
|