pb-sxp-ui 1.15.34 → 1.15.35

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.
@@ -372,11 +372,12 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
372
372
  if (eventName === 'PageView' && (pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name) === 'PageView') {
373
373
  if (!pixelPvStatusRef.current) {
374
374
  pixelPvStatusRef.current = true;
375
- return;
376
375
  }
377
- const currentUrl = window.location.href;
378
- const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
379
- history.pushState({ path: newUrl }, '', newUrl);
376
+ else {
377
+ const currentUrl = window.location.href;
378
+ const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
379
+ history.pushState({ path: newUrl }, '', newUrl);
380
+ }
380
381
  }
381
382
  else {
382
383
  const body = getEventParamsByJson(pixelEventParamsJson);
@@ -375,11 +375,12 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
375
375
  if (eventName === 'PageView' && (pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name) === 'PageView') {
376
376
  if (!pixelPvStatusRef.current) {
377
377
  pixelPvStatusRef.current = true;
378
- return;
379
378
  }
380
- const currentUrl = window.location.href;
381
- const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
382
- history.pushState({ path: newUrl }, '', newUrl);
379
+ else {
380
+ const currentUrl = window.location.href;
381
+ const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
382
+ history.pushState({ path: newUrl }, '', newUrl);
383
+ }
383
384
  }
384
385
  else {
385
386
  const body = getEventParamsByJson(pixelEventParamsJson);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.15.34",
3
+ "version": "1.15.35",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",