sr-npm 1.7.219 → 1.7.221

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.219",
3
+ "version": "1.7.221",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -259,9 +259,12 @@ async function resetFilters(_$w) {
259
259
  _$w('#resetFiltersButton').disable();
260
260
 
261
261
  queryParams.remove(["keyWord", "department","page","location"]);
262
- await updateMapMarkers(_$w);
262
+
263
263
 
264
264
  await updateCount(_$w);
265
+ console.log("reseting map markers");
266
+ await updateMapMarkers(_$w);
267
+ console.log("reseting map markers completed");
265
268
  }
266
269
 
267
270
  async function updateCount(_$w) {
@@ -357,17 +360,17 @@ async function updateMapMarkers(_$w){
357
360
  console.log("markers: ", markers);
358
361
  console.log("type of markers: ", typeof markers);
359
362
  //@ts-ignore
360
- await _$w('#googleMaps').setMarkers(markers);
363
+ _$w('#googleMaps').setMarkers(markers);
361
364
  }
362
365
  else{
363
366
  console.log("no positions found");
364
- await _$w('#googleMaps').setMarkers({
367
+ _$w('#googleMaps').setMarkers([{
365
368
  location: {
366
369
  latitude: 0,
367
370
  longitude: 0
368
371
  },
369
372
  address: "No positions found",
370
- });
373
+ }]);
371
374
  }
372
375
  }
373
376