Feature/add guard to TransformDataSourceInRequestInterceptor (#4438)

* Add guard
This commit is contained in:
Thomas Kaul 2025-03-15 12:22:24 +01:00 committed by GitHub
parent 1917c17cf9
commit 2f868b8902
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ export class TransformDataSourceInRequestInterceptor<T>
const request = http.getRequest();
if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) {
if (request.body.activities) {
if (request.body?.activities) {
request.body.activities = request.body.activities.map((activity) => {
if (DataSource[activity.dataSource]) {
return activity;