diff --git a/libs/feature/record/src/lib/state/mdview.facade.ts b/libs/feature/record/src/lib/state/mdview.facade.ts index 2086564c30..37364de54d 100644 --- a/libs/feature/record/src/lib/state/mdview.facade.ts +++ b/libs/feature/record/src/lib/state/mdview.facade.ts @@ -7,11 +7,9 @@ import { LinkClassifierService, LinkUsage } from '@geonetwork-ui/util/shared' import { DatavizConfigurationModel } from '@geonetwork-ui/common/domain/model/dataviz/dataviz-configuration.model' import { CatalogRecord, - DatasetDistribution, UserFeedback, } from '@geonetwork-ui/common/domain/model/record' import { AvatarServiceInterface } from '@geonetwork-ui/api/repository' -import { Observable } from 'rxjs' @Injectable() /** @@ -48,15 +46,11 @@ export class MdViewFacade { error$ = this.store.pipe(select(MdViewSelectors.getMetadataError)) - related$: Observable = this.store.pipe( - select(MdViewSelectors.getRelated) - ) + related$ = this.store.pipe(select(MdViewSelectors.getRelated)) - chartConfig$: Observable = this.store.pipe( - select(MdViewSelectors.getChartConfig) - ) + chartConfig$ = this.store.pipe(select(MdViewSelectors.getChartConfig)) - allLinks$: Observable = this.metadata$.pipe( + allLinks$ = this.metadata$.pipe( map((record) => ('distributions' in record ? record.distributions : [])) ) diff --git a/libs/ui/elements/src/lib/ui-elements.module.ts b/libs/ui/elements/src/lib/ui-elements.module.ts index ff83d14455..58d85ece10 100644 --- a/libs/ui/elements/src/lib/ui-elements.module.ts +++ b/libs/ui/elements/src/lib/ui-elements.module.ts @@ -33,7 +33,6 @@ import { MarkdownParserComponent } from './markdown-parser/markdown-parser.compo import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-overlay-preview.component' import { UserFeedbackItemComponent } from './user-feedback-item/user-feedback-item.component' import { TimeSincePipe } from './user-feedback-item/time-since.pipe' -import { MatPaginatorModule } from '@angular/material/paginator' @NgModule({ imports: [ @@ -51,7 +50,6 @@ import { MatPaginatorModule } from '@angular/material/paginator' MarkdownParserComponent, ThumbnailComponent, TimeSincePipe, - MatPaginatorModule, ], declarations: [ MetadataInfoComponent,