Feature/drop activity id on import (#2769)

* Drop activity id on import

* Update changelog
pull/2768/head^2
Thomas Kaul 1 year ago committed by GitHub
parent beb9e2c43f
commit 337ca328c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Set the select column of the lazy-loaded activities table to stick at the end (experimental) - Set the select column of the lazy-loaded activities table to stick at the end (experimental)
- Dropped the activity id in the activities import
- Improved the validation of the currency management in the admin control panel - Improved the validation of the currency management in the admin control panel
- Improved the performance of the value redaction interceptor for the impersonation mode by eliminating `cloneDeep` - Improved the performance of the value redaction interceptor for the impersonation mode by eliminating `cloneDeep`
- Modernized the `Nx` executors - Modernized the `Nx` executors

@ -260,6 +260,14 @@ export class ImportActivitiesDialog implements OnDestroy {
} }
} }
content.activities = content.activities.map((activity) => {
if (activity.id) {
delete activity.id;
}
return activity;
});
try { try {
const { activities } = const { activities } =
await this.importActivitiesService.importJson({ await this.importActivitiesService.importJson({

Loading…
Cancel
Save