Skip to content

Commit

Permalink
[DSC-1979] Improve filer check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Oct 24, 2024
1 parent 609e5cb commit be560a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { DSONameService } from '../../../../../../core/breadcrumbs/dso-name.serv
import { APP_CONFIG, AppConfig } from '../../../../../../../config/app-config.interface';
import { getFirstSucceededRemoteListPayload } from '../../../../../../core/shared/operators';
import { filter, map } from 'rxjs/operators';
import { isNotEmpty } from '../../../../../empty.util';

@listableObjectComponent('PublicationSearchResult', ViewMode.ListElement)
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement)
Expand Down Expand Up @@ -70,7 +71,7 @@ export class ItemSearchResultListElementComponent extends SearchResultListElemen

this.hasLoadedThirdPartyMetrics$ = combineLatest([
this.klaroService.consentsUpdates$.pipe(
filter(consents => consents != null)
filter(consents => isNotEmpty(consents))
),
this.dso.metrics?.pipe(
getFirstSucceededRemoteListPayload(),
Expand Down

0 comments on commit be560a6

Please sign in to comment.