Skip to content

Commit be560a6

Browse files
committed
[DSC-1979] Improve filer check condition
1 parent 609e5cb commit be560a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { DSONameService } from '../../../../../../core/breadcrumbs/dso-name.serv
1616
import { APP_CONFIG, AppConfig } from '../../../../../../../config/app-config.interface';
1717
import { getFirstSucceededRemoteListPayload } from '../../../../../../core/shared/operators';
1818
import { filter, map } from 'rxjs/operators';
19+
import { isNotEmpty } from '../../../../../empty.util';
1920

2021
@listableObjectComponent('PublicationSearchResult', ViewMode.ListElement)
2122
@listableObjectComponent(ItemSearchResult, ViewMode.ListElement)
@@ -70,7 +71,7 @@ export class ItemSearchResultListElementComponent extends SearchResultListElemen
7071

7172
this.hasLoadedThirdPartyMetrics$ = combineLatest([
7273
this.klaroService.consentsUpdates$.pipe(
73-
filter(consents => consents != null)
74+
filter(consents => isNotEmpty(consents))
7475
),
7576
this.dso.metrics?.pipe(
7677
getFirstSucceededRemoteListPayload(),

0 commit comments

Comments
 (0)