Denormalised inline calculations to property documents, needs to be referenced by UI still
This commit is contained in:
@@ -28,6 +28,13 @@ export default function evaluateCalculation(string, memo, fn = 'reduce'){
|
||||
dependencies,
|
||||
};
|
||||
}
|
||||
if (!calc){
|
||||
return {
|
||||
context: {errors},
|
||||
result: new ConstantNode({value: calc, type: 'string'}),
|
||||
dependencies,
|
||||
};
|
||||
}
|
||||
// Ensure all symbol nodes are defined and computed
|
||||
calc.traverse(node => {
|
||||
if (node instanceof SymbolNode || node instanceof AccessorNode){
|
||||
|
||||
Reference in New Issue
Block a user