@ -122,8 +122,7 @@ export class AccountDetailDialog implements OnDestroy, OnInit {
type: 'ACCOUNT',
id: this.data.accountId
}
],
range: 'max'
]
})
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe(({ holdings }) => {
@ -468,10 +468,13 @@ export class DataService {
range
}: {
filters?: Filter[];
range: DateRange;
range?: DateRange;
}) {
let params = this.buildFiltersAsQueryParams({ filters });
params = params.append('range', range);
if (range) {
return this.http
.get<PortfolioHoldingsResponse>('/api/v1/portfolio/holdings', {