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 056f853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/WorkflowExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ export class WorkflowExecute {

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

0 comments on commit 056f853

Please sign in to comment.