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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user