sr-npm 1.7.247 → 1.7.248

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.247",
3
+ "version": "1.7.248",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  const { getAllPositions } = require('../backend/queries');
2
2
  const {wixData} = require('wix-data');
3
- const { location } = require('@wix/site-location');
3
+ //const { location } = require('@wix/site-location');
4
4
  const { window } = require('@wix/site-window');
5
- const { query,queryParams,to } = require("wix-location-frontend");
5
+ const { query,queryParams,to,wixLocationFrontend } = require("wix-location-frontend");
6
6
  const {
7
7
  debounce,
8
8
  getFilter,
@@ -155,11 +155,7 @@ async function bind(_$w) {
155
155
 
156
156
  _$w('#positionsRepeater').onItemReady(async ($item, itemData) => {
157
157
  $item('#positionItem').onClick(async () => {
158
- let baseUrl = await location.baseUrl();
159
- console.log("baseUrl: ", baseUrl);
160
- console.log("itemData: ", itemData);
161
- console.log("$item: ", $item);
162
- console.log("itemData['link-jobs-title']: ", itemData['link-jobs-title'].replace(" ", "-"));
158
+ let baseUrl = wixLocationFrontend.baseUrl();
163
159
  to(`${baseUrl}/jobs/${itemData._id}`);
164
160
  });
165
161
  });