From 8d4876a055dfa8cd3b2a74fb409248d78e2cbe28 Mon Sep 17 00:00:00 2001 From: toby Date: Sat, 4 Mar 2017 11:04:17 -0500 Subject: [PATCH] Fix Return operation --- src/js/core/FlowControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/core/FlowControl.js b/src/js/core/FlowControl.js index 9d4b9af5..6241c3e4 100755 --- a/src/js/core/FlowControl.js +++ b/src/js/core/FlowControl.js @@ -201,7 +201,7 @@ var FlowControl = { * @returns {Object} The updated state of the recipe. */ runReturn: function(state) { - state.progress = state.opList.length; + state.progress = state.opList.length - 1; return state; },