Bugfix/fix duplicated tags in position detail dialog (#3224)

* Fix duplicated tags

* Update changelog
This commit is contained in:
Thomas Kaul
2024-04-01 09:22:35 +02:00
committed by GitHub
parent 1b81409b35
commit b8533050b0
2 changed files with 6 additions and 2 deletions

View File

@@ -719,8 +719,6 @@ export class PortfolioService {
{ dataSource: aDataSource, symbol: aSymbol }
]);
tags = uniqBy(tags, 'id');
const portfolioCalculator = this.calculatorFactory.createCalculator({
activities: orders.filter((order) => {
tags = tags.concat(order.tags);
@@ -731,6 +729,8 @@ export class PortfolioService {
currency: userCurrency
});
tags = uniqBy(tags, 'id');
const portfolioStart = portfolioCalculator.getStartDate();
const transactionPoints = portfolioCalculator.getTransactionPoints();