null => of([])

This commit is contained in:
Mononaut 2023-07-21 18:10:13 +09:00
parent 1096a24c55
commit 3b5e8eba94

View File

@ -84,7 +84,7 @@ export class BlocksList implements OnInit {
.pipe(
switchMap((blocks) => {
if (blocks[0].height <= this.lastBlockHeight) {
return null; // Return an empty stream so the last pipe is not executed
return of([]); // Return an empty stream so the last pipe is not executed
}
this.lastBlockHeight = blocks[0].height;
return of(blocks);