fix(est): preserve zero workflow totals
This commit is contained in:
@@ -196,7 +196,10 @@ const EstProgress = (() => {
|
||||
? floating((num(row[prefix + "TC"]) / num(row.TC)) * 100, 2, 1)
|
||||
: 0;
|
||||
}
|
||||
return { rows: calculated.tables.Wonga, total: num(calculated.calculation.total) || current };
|
||||
return {
|
||||
rows: calculated.tables.Wonga,
|
||||
total: calculated.tables.Wonga.length ? num(calculated.calculation.total) : current,
|
||||
};
|
||||
}
|
||||
const gum = costsFor("Gum"),
|
||||
sa = costsFor("Sa"),
|
||||
|
||||
Reference in New Issue
Block a user