Skip to content

Commit

Permalink
Merge pull request #545 from geonetwork/fix-wc-base-component
Browse files Browse the repository at this point in the history
Fix dataviz web components
  • Loading branch information
fgravin authored Jul 26, 2023
2 parents 94252f4 + 5fce4dc commit eed59bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/webcomponents/src/app/components/base.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class BaseComponent implements OnChanges, OnInit {
JSON.stringify(this.esService.getMetadataByIdPayload(uuid))
)
)
.then((response) => this.esMapper.toRecords(response))
.then((response) => firstValueFrom(this.esMapper.toRecords(response)))
.then((records) => records[0])
const dataLinks = record.links.filter((link) =>
usages.some((usage) => this.linkClassifier.hasUsage(link, usage))
Expand Down

0 comments on commit eed59bb

Please sign in to comment.