mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
SSR: fix incoming tx graph init state
This commit is contained in:
parent
29aaeef47b
commit
5b4132b551
2 changed files with 4 additions and 3 deletions
|
@ -45,12 +45,12 @@
|
|||
<div class="card-body">
|
||||
<ng-container *ngTemplateOutlet="mempoolTable; context: { $implicit: mempoolInfoData }"></ng-container>
|
||||
<h5 class="card-title mt-3" i18n="dashboard.incoming-transactions">Incoming Transactions</h5>
|
||||
<div class="mempool-graph" *ngIf="{ value: (mempoolStats$ | async) } as mempoolStats">
|
||||
<div class="mempool-graph" *ngIf="(mempoolStats$ | async) as mempoolStats">
|
||||
<app-incoming-transactions-graph
|
||||
[height]="incomingGraphHeight"
|
||||
[left]="50"
|
||||
[right]="20"
|
||||
[data]="mempoolStats.value?.weightPerSecond"
|
||||
[data]="mempoolStats?.weightPerSecond"
|
||||
[windowPreferenceOverride]="'2h'"
|
||||
></app-incoming-transactions-graph>
|
||||
</div>
|
||||
|
|
|
@ -8,6 +8,7 @@ import { StateService } from '../services/state.service';
|
|||
import { WebsocketService } from '../services/websocket.service';
|
||||
import { SeoService } from '../services/seo.service';
|
||||
import { ActiveFilter, FilterMode, toFlags } from '../shared/filters.utils';
|
||||
import { TransferState } from '@angular/core';
|
||||
|
||||
interface MempoolBlocksData {
|
||||
blocks: number;
|
||||
|
@ -241,7 +242,7 @@ export class DashboardComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
return null;
|
||||
}
|
||||
}),
|
||||
share(),
|
||||
shareReplay(1),
|
||||
);
|
||||
|
||||
if (this.stateService.network === 'liquid') {
|
||||
|
|
Loading…
Add table
Reference in a new issue