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.
package/dist/index.js CHANGED
@@ -986,11 +986,12 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
986
986
  if (eventName === 'PageView' && (pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name) === 'PageView') {
987
987
  if (!pixelPvStatusRef.current) {
988
988
  pixelPvStatusRef.current = true;
989
- return;
990
989
  }
991
- const currentUrl = window.location.href;
992
- const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
993
- history.pushState({ path: newUrl }, '', newUrl);
990
+ else {
991
+ const currentUrl = window.location.href;
992
+ const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
993
+ history.pushState({ path: newUrl }, '', newUrl);
994
+ }
994
995
  }
995
996
  else {
996
997
  const body = getEventParamsByJson(pixelEventParamsJson);