@indigina/ui-kit 1.1.243 → 1.1.244

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.
@@ -6874,8 +6874,8 @@ class KitGlobalSearchComponent {
6874
6874
  this.searchValue = text;
6875
6875
  this.isLoading.set(true);
6876
6876
  this.showPropmts.set(false);
6877
- this.searchFn()(text, filters).subscribe(searchRusult => {
6878
- this.searchResults.set(searchRusult.filter(Boolean));
6877
+ this.searchFn()(text, filters).subscribe(searchResult => {
6878
+ this.searchResults.set(searchResult.filter(Boolean));
6879
6879
  this.isLoading.set(false);
6880
6880
  });
6881
6881
  });
@@ -7021,12 +7021,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
7021
7021
  }] } });
7022
7022
 
7023
7023
  const mapGlobalSearchResult = (store, requiredPermission, dataFetcher, categoryName, routeConfig, itemMapper) => {
7024
- return store.select(KIT_USER_PERMISSIONS_STATE_TOKEN).pipe(tap(permissions => {
7025
- if (Object.keys(permissions).length) {
7026
- store.dispatch(new FetchUserPermissions());
7027
- }
7028
- }), filter(permissions => !!Object.keys(permissions).length), take(1), switchMap(permissions => {
7029
- if (kitHasPermission(requiredPermission, permissions)) {
7024
+ return store.select(KIT_USER_PERMISSIONS_STATE_TOKEN).pipe(tap(permissions => !Object.keys(permissions).length && store.dispatch(new FetchUserPermissions())), filter(permissions => !!Object.keys(permissions).length), take(1), switchMap(permissions => {
7025
+ if (!kitHasPermission(requiredPermission, permissions)) {
7030
7026
  return of(null);
7031
7027
  }
7032
7028
  return dataFetcher().pipe(map(data => ({