@open-rlb/ng-app 3.1.20 → 3.1.21

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.
@@ -1629,19 +1629,18 @@ class CompanyInterceptor {
1629
1629
  intercept(req, next) {
1630
1630
  const authConfig = this.config.auth;
1631
1631
  const isAllowed = authConfig?.allowedUrls?.some(url => req.url.includes(url));
1632
- console.log('CompanyInterceptor: isAllowed', isAllowed, 'enableCompanyInterceptor', authConfig?.enableCompanyInterceptor);
1633
1632
  if (!isAllowed || !authConfig?.enableCompanyInterceptor) {
1634
1633
  return next.handle(req);
1635
1634
  }
1636
1635
  const currentApp = this.store.selectSignal(state => state[appContextFeatureKey].currentApp)();
1637
1636
  const data = currentApp?.data;
1638
1637
  const mapping = this.config.acl?.interceptorMapping || {};
1639
- const params = req.params;
1638
+ let params = req.params;
1640
1639
  Object.keys(mapping).forEach((key) => {
1641
1640
  const storeKey = mapping[key];
1642
1641
  const value = data?.[storeKey];
1643
1642
  if (!!value) {
1644
- params.set(key, value);
1643
+ params = params.set(key, value);
1645
1644
  }
1646
1645
  });
1647
1646
  const clonedReq = req.clone({ params });