Browse Source

Merge 6943dfd398 into c6a2741cb1

pull/6988/merge
Parman Mohammadalizadeh 3 days ago
committed by GitHub
parent
commit
09819bb445
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      libs/common/src/lib/interfaces/asset-profile-identifier.interface.ts
  2. 5
      libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

2
libs/common/src/lib/interfaces/asset-profile-identifier.interface.ts

@ -1,6 +1,6 @@
import { DataSource } from '@prisma/client'; import { DataSource } from '@prisma/client';
export interface AssetProfileIdentifier { export interface AssetProfileIdentifier {
dataSource: DataSource; dataSource?: DataSource;
symbol: string; symbol: string;
} }

5
libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts

@ -357,12 +357,9 @@ export class GfPortfolioProportionChartComponent
try { try {
const dataIndex = activeElements[0].index; const dataIndex = activeElements[0].index;
const symbol = chart.data.labels?.[dataIndex] as string; const symbol = chart.data.labels?.[dataIndex] as string;
const dataSource = this.data[symbol]?.dataSource;
const dataSource = this.data[symbol].dataSource;
if (dataSource) {
this.proportionChartClicked.emit({ dataSource, symbol }); this.proportionChartClicked.emit({ dataSource, symbol });
}
} catch {} } catch {}
}, },
onHover: (event, chartElement) => { onHover: (event, chartElement) => {

Loading…
Cancel
Save