buildingproduct-library 1.2.0 → 1.2.1

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.
@@ -1951,7 +1951,7 @@
1951
1951
  }
1952
1952
  CustomMiniCartComponent.prototype.ngOnInit = function () {
1953
1953
  return __awaiter(this, void 0, void 0, function () {
1954
- var _u;
1954
+ var _u, cartLoaded;
1955
1955
  var _this = this;
1956
1956
  return __generator(this, function (_v) {
1957
1957
  switch (_v.label) {
@@ -1962,6 +1962,11 @@
1962
1962
  _u.isCartPermission =
1963
1963
  _v.sent();
1964
1964
  this.getCartId();
1965
+ cartLoaded = sessionStorage.getItem('isCartLoaded');
1966
+ if (!cartLoaded) {
1967
+ sessionStorage.setItem('isCartLoaded', 'true');
1968
+ window.location.reload();
1969
+ }
1965
1970
  this.showWaitCursor.next(true);
1966
1971
  this.router.events.subscribe(function (val) {
1967
1972
  if (window.location.pathname.includes("mylist")) {
@@ -1972,14 +1977,7 @@
1972
1977
  }
1973
1978
  _this.ref.markForCheck();
1974
1979
  });
1975
- this.cartService.isAccountLoaded.subscribe(function (isLoaded) {
1976
- if (isLoaded) {
1977
- setTimeout(function () {
1978
- _this.loadFirstCartData();
1979
- }, 1000);
1980
- _this.getCartData();
1981
- }
1982
- });
1980
+ this.getCartData();
1983
1981
  this.cmsService
1984
1982
  .getComponentData("ContactUsComponent")
1985
1983
  .subscribe(function (data) { });