Slot quantity is now a computed value, added property viewer for slots

This commit is contained in:
Stefan Zermatten
2021-02-23 14:53:47 +02:00
parent 858915b25b
commit d69ada0db4
9 changed files with 59 additions and 15 deletions

View File

@@ -23,6 +23,7 @@ export default function computeEndStepProperty(prop, memo){
computePropertyField(prop, memo, 'maxPrepared');
break;
case 'propertySlot':
computePropertyField(prop, memo, 'quantityExpected');
computePropertyField(prop, memo, 'slotCondition');
break;
case 'roll':

View File

@@ -21,6 +21,9 @@ export default function evaluateCalculation({
context,
dependencies,
};
if (typeof string !== 'string'){
string = string.toString();
}
// Parse the string
let calc;
try {