Skip to content

Commit

Permalink
fix(links): display link when format is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
akhelouat committed Jun 21, 2022
1 parent a95b512 commit 51c207e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class DownloadsListComponent implements OnInit {

ngOnInit(): void {
this.processedLinks = this.formatLinks(this.links)
console.log(this.processedLinks)
this.processedLinks = this.assignColor(this.processedLinks)
this.processedLinks = this.isGeneratedFromWfs(this.processedLinks)
this.filteredLinks = this.filterLinks(this.processedLinks)
Expand All @@ -70,7 +71,7 @@ export class DownloadsListComponent implements OnInit {
return links.map((link) => {
return {
...link,
format: link.format.split(':').at(-1),
format: link.format ? link.format.split(':').at(-1) : '',
}
})
}
Expand Down

0 comments on commit 51c207e

Please sign in to comment.