sr-npm 1.7.816 → 1.7.817
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 +1 -1
- package/pages/positionPage.js +1 -4
package/package.json
CHANGED
package/pages/positionPage.js
CHANGED
|
@@ -51,9 +51,7 @@ async function getCategoryValueId(customFields) {
|
|
|
51
51
|
}
|
|
52
52
|
if(_$w('#relatedJobsRepNoDepartment')) // when there is no department, we filter based on category
|
|
53
53
|
{
|
|
54
|
-
console.log("item inside getRelatedJobs: ", item);
|
|
55
54
|
const relatedJobs=await getRelatedJobs(categoryValueId,item._id);
|
|
56
|
-
console.log("relatedJobs@@$@$@$$%%%%%%%%%%#$@: ", relatedJobs);
|
|
57
55
|
_$w('#relatedJobsRepNoDepartment').onItemReady(($item, itemData) => {
|
|
58
56
|
$item('#relatedJobTitle').text = itemData.title;
|
|
59
57
|
$item('#relatedJobLocation').text = itemData.location.fullLocation;
|
|
@@ -61,7 +59,7 @@ async function getCategoryValueId(customFields) {
|
|
|
61
59
|
await location.to(itemData["link-jobs-title"]);
|
|
62
60
|
});
|
|
63
61
|
});
|
|
64
|
-
_$w('#relatedJobsRepNoDepartment').data = relatedJobs
|
|
62
|
+
_$w('#relatedJobsRepNoDepartment').data = relatedJobs
|
|
65
63
|
|
|
66
64
|
}
|
|
67
65
|
});
|
|
@@ -93,7 +91,6 @@ async function getCategoryValueId(customFields) {
|
|
|
93
91
|
|
|
94
92
|
async function getRelatedJobs(categoryValueId,itemId) {
|
|
95
93
|
const relatedJobs=await wixData.query(COLLECTIONS.JOBS).include(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES).hasSome(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES,[categoryValueId]).ne("_id",itemId).find();
|
|
96
|
-
console.log("relatedJobs@@$@$@$#$@: ", relatedJobs);
|
|
97
94
|
return relatedJobs.items;
|
|
98
95
|
}
|
|
99
96
|
|