sr-npm 1.7.158 → 1.7.160
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/backend/data.js +2 -2
- package/package.json +1 -1
- package/pages/careersPage.js +3 -1
package/backend/data.js
CHANGED
|
@@ -28,11 +28,11 @@ async function saveJobsDataToCMS() {
|
|
|
28
28
|
const positions = await fetchPositionsFromSRAPI();
|
|
29
29
|
// bulk insert to jobs collection without descriptions first
|
|
30
30
|
const jobsData = positions.content.map(position => {
|
|
31
|
-
|
|
31
|
+
// validatePosition(position);
|
|
32
32
|
const basicJob = {
|
|
33
33
|
_id: position.id,
|
|
34
34
|
title: position.title,
|
|
35
|
-
department: position.department.label
|
|
35
|
+
department: position.department.label,
|
|
36
36
|
cityText: normalizeCityName(position.location.city),
|
|
37
37
|
location: position.location,
|
|
38
38
|
country: position.location.country,
|
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -95,7 +95,9 @@ async function handleUrlParams(_$w) {
|
|
|
95
95
|
async function handleKeyWordParam(_$w,keyWord) {
|
|
96
96
|
_$w('#searchInput').value = keyWord;
|
|
97
97
|
// Use applyFilters to maintain consistency instead of directly setting filter
|
|
98
|
-
|
|
98
|
+
// await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
|
|
99
|
+
await _$w("#jobsDataset").setFilter(wixData.filter().contains("title", keyWord));
|
|
100
|
+
await _$w("#jobsDataset").refresh();
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
async function handlePageParam(_$w) {
|