Fix workflow upgrade command (#14824)

While upgrading to 1.7.0, we are facing an error in the workflow version
upgrade for outdated workflow versions. Fixing the command
This commit is contained in:
Charles Bochet
2025-10-01 19:57:43 +02:00
committed by GitHub
parent 9c4d9298f8
commit ec317bd3d0
2 changed files with 21 additions and 19 deletions
@@ -41,7 +41,7 @@ export class BackfillWorkflowManualTriggerAvailabilityCommand extends ActiveOrSu
for (const workflowVersion of workflowVersions) {
const { trigger } = workflowVersion;
if (trigger.type !== WorkflowTriggerType.MANUAL) {
if (!isDefined(trigger) || trigger?.type !== WorkflowTriggerType.MANUAL) {
continue;
}