sr-npm 1.7.222 → 1.7.223
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/careersPage.js +12 -12
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -345,7 +345,7 @@ async function handleLocationParam(_$w,location) {
|
|
|
345
345
|
|
|
346
346
|
async function updateMapMarkers(_$w){
|
|
347
347
|
const numOfItems = await _$w('#jobsDataset').getTotalCount();
|
|
348
|
-
|
|
348
|
+
// if(numOfItems>0){
|
|
349
349
|
const items = await _$w('#jobsDataset').getItems(0, numOfItems);
|
|
350
350
|
const markers = items.items.map(item => {
|
|
351
351
|
const location = item.locationAddress.location;
|
|
@@ -362,17 +362,17 @@ async function updateMapMarkers(_$w){
|
|
|
362
362
|
console.log("type of markers: ", typeof markers);
|
|
363
363
|
//@ts-ignore
|
|
364
364
|
_$w('#googleMaps').setMarkers(markers);
|
|
365
|
-
}
|
|
366
|
-
else{
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
365
|
+
//}
|
|
366
|
+
// else{
|
|
367
|
+
// console.log("no positions found");
|
|
368
|
+
// _$w('#googleMaps').setMarkers([{
|
|
369
|
+
// location: {
|
|
370
|
+
// latitude: 0,
|
|
371
|
+
// longitude: 0
|
|
372
|
+
// },
|
|
373
|
+
// address: "No positions found",
|
|
374
|
+
// }]);
|
|
375
|
+
// }
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
|