Fixed bug when trying to calculate empty calcs

This commit is contained in:
ThaumRystra
2023-11-09 23:10:08 +02:00
parent 7eada9effe
commit 4d1dec8956

View File

@@ -6,6 +6,7 @@ import resolve, { toPrimitiveOrString } from '/imports/parser/resolve.js';
export default function computeCalculation(computation, node) {
const calcObj = node.data;
if (!calcObj) return;
// resolve the parse node into the initial value
resolveCalculationNode(calcObj, calcObj.parseNode, computation.scope);
// Store the unaffected value