mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed step time calculation
This commit is contained in:
@@ -507,7 +507,7 @@
|
||||
updateTimes: function (step) {
|
||||
let time_diff_first = 0
|
||||
for (let s of this.recipe.steps) {
|
||||
if (s !== step) {
|
||||
if (this.recipe.steps.indexOf(s) < this.recipe.steps.indexOf(step)) {
|
||||
time_diff_first += s.time
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user