Skip to content

Commit

Permalink
check only if restartExecutionId is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Apr 5, 2023
1 parent 3f72afe commit 2c4fc6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/WorkflowExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,7 @@ export class WorkflowExecute {

const returnPromise = (async () => {
try {
const { executionId, restartExecutionId } = this.additionalData;
if (restartExecutionId !== executionId) {
if (!this.additionalData.restartExecutionId) {
await this.executeHook('workflowExecuteBefore', [workflow]);
}
} catch (error) {
Expand Down

0 comments on commit 2c4fc6b

Please sign in to comment.