Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/improve allocations page with no filter (#887)

Thomas Kaul57314d62eebc
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 250884cdcb..1938198598 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Migrated the asset profile data gathering to the queue design pattern
+- Improved the allocations page with no filtering
- Harmonized the _No data available_ label in the portfolio proportion chart component
## 1.145.0 - 07.05.2022
diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts
index 37252b8fc5..25021492eb 100644
--- a/apps/api/src/app/portfolio/portfolio.controller.ts
+++ b/apps/api/src/app/portfolio/portfolio.controller.ts
@@ -183,7 +183,7 @@ export class PortfolioController {
return {
hasError,
- accounts: filters ? {} : accounts,
+ accounts: filters.length === 0 ? accounts : {},
holdings: isBasicUser ? {} : holdings
};
}