Bugfix/handle exception in benchmark service related to unnamed asset profiles (#4355)

* Handle exception in benchmark service related to unnamed asset profiles 

* Update changelog
This commit is contained in:
Matt Fiddaman 2025-03-01 14:16:21 +00:00 committed by GitHub
parent a8d1248461
commit 6cdcf9622e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved the symbol lookup in the _Trackinsight_ data enhancer for asset profile data - Improved the symbol lookup in the _Trackinsight_ data enhancer for asset profile data
### Fixed
- Handled an exception in the benchmark service related to unnamed asset profiles
## 2.142.0 - 2025-02-28 ## 2.142.0 - 2025-02-28
### Added ### Added

View File

@ -133,7 +133,9 @@ export class BenchmarkService {
symbol symbol
}; };
}) })
.sort((a, b) => a.name.localeCompare(b.name)); .sort((a, b) => {
return a.name?.localeCompare(b?.name) ?? 0;
});
} }
public async addBenchmark({ public async addBenchmark({