Bugfix/fix asset profile details dialog (#1232)
* Fix dialog for assets without (first) activity * Update changelog
This commit is contained in:
parent
3ad99c9991
commit
75db7bf79a
@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Added a benchmark comparator (experimental)
|
- Added a benchmark comparator (experimental)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Improved the asset profile details dialog for assets without a (first) activity in the admin control panel
|
||||||
|
|
||||||
## 1.187.0 - 03.09.2022
|
## 1.187.0 - 03.09.2022
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -92,7 +92,6 @@ export class AdminMarketDataComponent implements OnDestroy, OnInit {
|
|||||||
if (
|
if (
|
||||||
params['assetProfileDialog'] &&
|
params['assetProfileDialog'] &&
|
||||||
params['dataSource'] &&
|
params['dataSource'] &&
|
||||||
params['dateOfFirstActivity'] &&
|
|
||||||
params['symbol']
|
params['symbol']
|
||||||
) {
|
) {
|
||||||
this.openAssetProfileDialog({
|
this.openAssetProfileDialog({
|
||||||
@ -170,12 +169,16 @@ export class AdminMarketDataComponent implements OnDestroy, OnInit {
|
|||||||
dateOfFirstActivity,
|
dateOfFirstActivity,
|
||||||
symbol
|
symbol
|
||||||
}: UniqueAsset & { dateOfFirstActivity: string }) {
|
}: UniqueAsset & { dateOfFirstActivity: string }) {
|
||||||
|
try {
|
||||||
|
dateOfFirstActivity = format(parseISO(dateOfFirstActivity), DATE_FORMAT);
|
||||||
|
} catch {}
|
||||||
|
|
||||||
this.router.navigate([], {
|
this.router.navigate([], {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
|
dateOfFirstActivity,
|
||||||
dataSource,
|
dataSource,
|
||||||
symbol,
|
symbol,
|
||||||
assetProfileDialog: true,
|
assetProfileDialog: true
|
||||||
dateOfFirstActivity: format(parseISO(dateOfFirstActivity), DATE_FORMAT)
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user