Denormalized some calculations into recomputation step

This commit is contained in:
Stefan Zermatten
2020-06-07 21:08:53 +02:00
parent 5198c655e9
commit 1535e00093
22 changed files with 320 additions and 132 deletions

View File

@@ -3,7 +3,7 @@ import math from '/imports/math.js';
/* Convert a calculation into a constant output and errors*/
export default function evaluateCalculation(string, memo){
if (!string) return string;
if (!string) return {errors: [], value: string};
let errors = [];
// Parse the string using mathjs
let calc;