Feature/add guard to TransformDataSourceInRequestInterceptor (#4438)
* Add guard
This commit is contained in:
parent
1917c17cf9
commit
2f868b8902
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user