fixed step time calculation

This commit is contained in:
vabene1111
2020-07-02 13:19:27 +02:00
parent ddaa9e6356
commit 6018101012

View File

@@ -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
}
}