Skip to content

Commit

Permalink
Merged in task/dspace-cris-2023_02_x/DSC-1979 (pull request DSpace#2399)
Browse files Browse the repository at this point in the history
[DSC-1979]

Approved-by: Giuseppe Digilio
  • Loading branch information
Simone-Ramundi authored and atarix83 committed Oct 24, 2024
2 parents b3c3c7e + be560a6 commit fbb04ca
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { TruncatableService } from '../../../../../truncatable/truncatable.servi
import { DSONameService } from '../../../../../../core/breadcrumbs/dso-name.service';
import { APP_CONFIG, AppConfig } from '../../../../../../../config/app-config.interface';
import { getFirstSucceededRemoteListPayload } from '../../../../../../core/shared/operators';
import { map } from 'rxjs/operators';
import { filter, map } from 'rxjs/operators';
import { isNotEmpty } from '../../../../../empty.util';

@listableObjectComponent('PublicationSearchResult', ViewMode.ListElement)
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement)
Expand Down Expand Up @@ -69,7 +70,9 @@ export class ItemSearchResultListElementComponent extends SearchResultListElemen
this.klaroService.watchConsentUpdates();

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

0 comments on commit fbb04ca

Please sign in to comment.