Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: skips processing of content types when not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Oct 21, 2020
1 parent bf0a66c commit 2df86f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/export/export.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ export class ExportService {
.listContentTypes()
.withListQueryConfig({
responseFetched: (listResponse, token) => {
listResponse.data.items.forEach((m) => this.processItem(m.name, 'contentType', m));
if (data.processItem) {
listResponse.data.items.forEach((m) => this.processItem(m.name, 'contentType', m));
}
}
})
.toAllPromise();
Expand Down

0 comments on commit 2df86f2

Please sign in to comment.