Skip to content

Commit

Permalink
issue in prepack
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj committed Apr 12, 2024
1 parent ae9eabb commit 087d48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contentstack-audit/src/modules/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class Workflows {
const ctNotPresent = workflow.content_types.filter((ct) => !this.ctUidSet.has(ct));
let branchesToBeRemoved: string[] = [];
if (this.config?.branch) {
branchesToBeRemoved = workflow?.branches?.filter((branch) => branch !== this.config?.branch);
branchesToBeRemoved = workflow?.branches?.filter((branch) => branch !== this.config?.branch) || [];
}

if (ctNotPresent.length || branchesToBeRemoved?.length) {
Expand Down

0 comments on commit 087d48b

Please sign in to comment.