Bugfix/handle value nullifcation for undefined object (#2064)
* Handle undefined object * Update changelog
This commit is contained in:
parent
9116443305
commit
2d009aacc4
@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Improved the language localization for French (`fr`)
|
- Improved the language localization for French (`fr`)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed an issue with the value nullification related to the investment streaks
|
||||||
|
|
||||||
## 1.278.0 - 2023-06-09
|
## 1.278.0 - 2023-06-09
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -16,9 +16,11 @@ export function hasNotDefinedValuesInObject(aObject: Object): boolean {
|
|||||||
export function nullifyValuesInObject<T>(aObject: T, keys: string[]): T {
|
export function nullifyValuesInObject<T>(aObject: T, keys: string[]): T {
|
||||||
const object = cloneDeep(aObject);
|
const object = cloneDeep(aObject);
|
||||||
|
|
||||||
keys.forEach((key) => {
|
if (object) {
|
||||||
object[key] = null;
|
keys.forEach((key) => {
|
||||||
});
|
object[key] = null;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user