From 0adaf9e626bd634adfcacee28f269a49874e6ecf Mon Sep 17 00:00:00 2001 From: Romuald Caplier Date: Tue, 23 Jul 2024 16:44:31 +0200 Subject: [PATCH] fix(datahub): fixed RECORD_HAS_NO_LINK error block. --- .../record/record-metadata/record-metadata.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/datahub/src/app/record/record-metadata/record-metadata.component.ts b/apps/datahub/src/app/record/record-metadata/record-metadata.component.ts index 43c712f165..3d485c2c0f 100644 --- a/apps/datahub/src/app/record/record-metadata/record-metadata.component.ts +++ b/apps/datahub/src/app/record/record-metadata/record-metadata.component.ts @@ -55,13 +55,17 @@ export class RecordMetadataComponent { ) displayDatasetHasNoLinkBlock$ = combineLatest([ + this.metadataViewFacade.isMetadataLoading$, this.displayDownload$, this.displayApi$, this.displayOtherLinks, ]).pipe( map( - ([displayDownload, displayApi, displayOtherLinks]) => - !displayDownload && !displayApi && !displayOtherLinks + ([isMetadataLoading, displayDownload, displayApi, displayOtherLinks]) => + !isMetadataLoading && + !displayDownload && + !displayApi && + !displayOtherLinks ) )