diff --git a/src/app/view/home/latestblocks/latestblocks.component.ts b/src/app/view/home/latestblocks/latestblocks.component.ts index 983c429..453cd74 100644 --- a/src/app/view/home/latestblocks/latestblocks.component.ts +++ b/src/app/view/home/latestblocks/latestblocks.component.ts @@ -59,6 +59,8 @@ export class LatestblocksComponent implements OnInit { this.lastblock = res.response.BlockchainBlockResult[0].blockchain_block_height; //console.log(this.lastblock); + }else{ + this.block.clear(); } } }, @@ -83,7 +85,7 @@ export class LatestblocksComponent implements OnInit { this.DifferentList.sort((a, b) => (a.blockchain_block_height) - (b.blockchain_block_height)); - + this.FirstPageListData = this.Merged_data; this.DifferentList.forEach(DifferentList_dub => { this.createBlock(DifferentList_dub); }); @@ -103,7 +105,7 @@ export class LatestblocksComponent implements OnInit { } public createBlock(DifferentList) { - this.FirstPageListData.push(DifferentList); + //this.FirstPageListData.push(DifferentList); const blockFactory = this.resolver.resolveComponentFactory( BlockAppendComponent, ); diff --git a/tsconfig.json b/tsconfig.json index 3a125dc..ba588d9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, - "target": "es2015", + "target": "es5", "typeRoots": [ "node_modules/@types" ],