diff --git a/web-ui/src/app/components/block-details/block-details.component.ts b/web-ui/src/app/components/block-details/block-details.component.ts index 98f5c6a..49cd556 100644 --- a/web-ui/src/app/components/block-details/block-details.component.ts +++ b/web-ui/src/app/components/block-details/block-details.component.ts @@ -26,7 +26,10 @@ export class BlockDetailsComponent implements OnInit { private errorService: ErrorService) { } ngOnInit() { - const blockhash = this.route.snapshot.paramMap.get('blockhash'); + this.route.params.forEach(params => this.onBlockhash(params['blockhash'])); + } + + private onBlockhash(blockhash: string) { this.blocksService.get(blockhash).subscribe( response => this.onBlockRetrieved(response), response => this.onError(response)