Skip to content

Commit

Permalink
#616 fix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arawinters committed Jan 4, 2024
1 parent a4a6e28 commit a3b9364
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/lib/charts/records-by-datasources/sz-donut.component.ts
Original file line number Diff line number Diff line change
@@ -242,10 +242,15 @@ export class SzRecordStatsDonutChart implements OnInit, OnDestroy {
this.getDataSources().pipe(
takeUntil(this.unsubscribe$),
take(1)
).subscribe((dataSources: SzDataSourcesResponseData)=>{
this._dataSources = dataSources;
if(this._dataSourceCounts && this._dataSources) {
this.dataChanged.next(this._dataSourceCounts);
).subscribe({
next: (dataSources: SzDataSourcesResponseData)=>{
this._dataSources = dataSources;
if(this._dataSourceCounts && this._dataSources) {
this.dataChanged.next(this._dataSourceCounts);
}
},
error: (err) => {
this.exception.next(err);
}
});

@@ -496,7 +501,7 @@ export class SzRecordStatsDonutChart implements OnInit, OnDestroy {
);
}
private getDataSources(): Observable<SzDataSourcesResponseData> {
return this.dataSourcesService.listDataSourcesDetails();
return this.dataSourcesService.listDataSourcesDetails()
}
getTotalsFromCounts(data: SzRecordCountDataSource[]): { totalEntityCount: number, totalRecordCount: number, totalUnmatchedRecordCount: number}
{

0 comments on commit a3b9364

Please sign in to comment.