Skip to content

Commit

Permalink
fix(pipeline): add incomplete as a finished state for pipeline steps. F…
Browse files Browse the repository at this point in the history
…ixes adobe#384
  • Loading branch information
Radu Matei committed Apr 5, 2024
1 parent 120f514 commit 989e5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ governing permissions and limitations under the License.
* @returns {PipelineExecutionStepState} the step state or a falsy object if all steps are finished
*/
function getCurrentStep (execution) {
return (execution && execution._embedded && execution._embedded.stepStates && execution._embedded.stepStates.filter(ss => ss.status !== 'FINISHED')[0]) || undefined
return (execution && execution._embedded && execution._embedded.stepStates && execution._embedded.stepStates.filter(ss => ss.status !== 'FINISHED' && ss.status !== 'INCOMPLETE')[0]) || undefined
}

/**
Expand Down

0 comments on commit 989e5ea

Please sign in to comment.