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

Commit

Permalink
fix: fixes a scenario where language variants are not published becau…
Browse files Browse the repository at this point in the history
…se workflow id was not available, but codename was
  • Loading branch information
Enngage committed Aug 4, 2021
1 parent 601b1d5 commit fa67eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/import/import.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ export class ImportService {
return;
}

const itemsToPublish = languageVariants.filter((m) => m.workflow_step.id === publishedWorkflowStep.id);
const itemsToPublish = languageVariants.filter((m) => m.workflow_step.id === publishedWorkflowStep.id || m.workflow_step.codename === publishedWorkflowStep.codename);

if (!itemsToPublish.length) {
// no items to publish
Expand Down

0 comments on commit fa67eb4

Please sign in to comment.